Skip to content

Commit

Permalink
Fixed supabase cookie format
Browse files Browse the repository at this point in the history
  • Loading branch information
albbus-stack authored Nov 22, 2023
1 parent 3dcf7a8 commit 5120ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/utils/supabase/cookies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function getCookieValue(cookieName: string): string | undefined {
}

if (cookie?.indexOf(cookieName) === 0) {
const cookieValue = cookie.substring(cookieNameLength + 1)
const cookieValue = cookie.replace('-code-verifier', '').substring(cookieNameLength + 1)
return decodeURIComponent(cookieValue)
}
}
Expand Down

0 comments on commit 5120ea9

Please sign in to comment.