Skip to content

Commit 5fa4dcd

Browse files
viva-jinyiclaude
andauthored
fix: force token refresh for session cookie creation (#6477)
## Summary - Force token refresh when creating session cookies to prevent authentication failures - Fixes Sentry issue #6976234063 affecting 29 users 🤖 Generated with [Claude Code](https://claude.ai/code) ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6477-fix-force-token-refresh-for-session-cookie-creation-29d6d73d365081c394c1d8f672884fd8) by [Unito](https://www.unito.io) Co-authored-by: Claude <[email protected]>
1 parent 61660a8 commit 5fa4dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platform/auth/session/useSessionCookie.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const useSessionCookie = () => {
1515
if (!isCloud) return
1616

1717
const authStore = useFirebaseAuthStore()
18-
const authHeader = await authStore.getAuthHeader()
18+
const authHeader = await authStore.getAuthHeader(true)
1919

2020
if (!authHeader) {
2121
throw new Error('No auth header available for session creation')

0 commit comments

Comments
 (0)