diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-10-10 23:07:24 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-10-10 23:07:24 -0400 |
| commit | 1798988c5bc6ad8c2286848df14c7fa478e135d1 (patch) | |
| tree | 896407fc2d5c769ff8d51337d35acfd9eeda32b5 /src/token/extract/identity_token.rs | |
| parent | 215b0c5cb2ff0ef0b2c7b5549704e23d651a4df9 (diff) | |
Make the identity cookie available to routes outside of `/api/`.
We now (try to) use the identity cookie in `/ch/:channel`. This will not work, because the cookie's path doesn't include `/ch/`.
Diffstat (limited to 'src/token/extract/identity_token.rs')
| -rw-r--r-- | src/token/extract/identity_token.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/token/extract/identity_token.rs b/src/token/extract/identity_token.rs index 0a47a43..a1e900e 100644 --- a/src/token/extract/identity_token.rs +++ b/src/token/extract/identity_token.rs @@ -51,7 +51,7 @@ impl IdentityToken { let secret = secret.into().reveal(); let identity_cookie = Cookie::build((IDENTITY_COOKIE, secret)) .http_only(true) - .path("/api/") + .path("/") .permanent() .build(); |
