Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(auth-api): wrong cookie expiration #42

Merged
merged 1 commit into from
Apr 8, 2024
Merged

Conversation

Jayllyz
Copy link
Contributor

@Jayllyz Jayllyz commented Apr 8, 2024

Since we use free tier of supabase for now, User sessions is infinite so expires date of the cookie was set to 1970 and then it was deleted at every re compilation.

access_token -> 1 week max (will be less for prod)
refresh_token -> 1 year max

@Jayllyz Jayllyz added the patch label Apr 8, 2024
@Jayllyz Jayllyz self-assigned this Apr 8, 2024
@Jayllyz Jayllyz linked an issue Apr 8, 2024 that may be closed by this pull request
@github-actions github-actions bot added the fix label Apr 8, 2024
@Jayllyz Jayllyz merged commit f513725 into main Apr 8, 2024
5 checks passed
@Jayllyz Jayllyz deleted the fix/cookie-expires branch April 8, 2024 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix(api): refresh token issue
1 participant