From 1798988c5bc6ad8c2286848df14c7fa478e135d1 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Thu, 10 Oct 2024 23:07:24 -0400 Subject: 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/`. --- src/token/extract/identity_token.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3