Skip to content

fix: auto-refresh expired tokens instead of forcing manual re-login - #3

Merged
mooncitizen merged 1 commit into
mainfrom
fix/auto-relogin
Mar 16, 2026
Merged

mooncitizen merged 1 commit into
mainfrom
fix/auto-relogin

Conversation

@mooncitizen

Copy link
Copy Markdown
Contributor

Replace require_auth() with ensure_auth() that checks JWT expiry and transparently refreshes or re-authenticates. Update login command to handle expired sessions gracefully. Bump TOKEN_LIFETIME to 8h to match new Supabase JWT config. Version bump to 0.0.8-alpha.

This should fix #2

Replace require_auth() with ensure_auth() that checks JWT expiry and
transparently refreshes or re-authenticates. Update login command to
handle expired sessions gracefully. Bump TOKEN_LIFETIME to 8h to match
new Supabase JWT config. Version bump to 0.0.8-alpha.
@mooncitizen
mooncitizen merged commit 1be2bbf into main Mar 16, 2026
2 checks passed
@mooncitizen
mooncitizen deleted the fix/auto-relogin branch March 16, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Token can expire without logout

1 participant