summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-04-19 16:06:39 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-04-19 16:06:39 -0500
commitaac78e11339db945f3bb81ad40bc71d021bcd754 (patch)
treedc91ba149fa74eff57261bf9db484013ee2ac865
parent7ca3d4df5cfb05b750a014c87d3f11ad32406316 (diff)
fix(auth): add explicit path to token cookie
-rw-r--r--src/auth/claims.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/auth/claims.rs b/src/auth/claims.rs
index 20a4d3f..67c4fbb 100644
--- a/src/auth/claims.rs
+++ b/src/auth/claims.rs
@@ -120,6 +120,7 @@ impl TryFrom<AccessClaims> for Cookie<'_> {
.expires(value.exp)
.secure(true)
.http_only(true)
+ .path("/api")
.build())
}
}