codersforcauses / wadl

A web-application to assist the Western Australian Debating League with their seasonal organisational needs. Documentation: (https://codersforcauses.github.io/wadl/)
https://wadl.vercel.app/
MIT License
8 stars 5 forks source link

give login session cookies an age, make them refresh properly and handle client side logout better #323

Closed NicholasJDavies closed 1 year ago

NicholasJDavies commented 1 year ago

Basic Information

This might fix the refresh bug. Login tokens auto refresh after one hour -- this is not currently matching handling of Nuxt 3 cookies. client side and server side logins are out of sync when the refresh bug happens - client store is filled but not logged in through auth, and server side is not logged in (or thats the current working theory.) if this fixes the bug then theoretically youll just be logged out and will need to login anyway.

Other Information

client side and server side logins are out of sync when the refresh bug happens - client store is filled but not logged in through auth, and server side is not logged in (or thats the current working theory.) if this fixes the bug then theoretically youll just be logged out and will need to login anyway. we'll see ¯_(ツ)_/¯

github-actions[bot] commented 1 year ago

Branch i323-give_login_session_cookies_an_age_make_them_refresh_properly_and_handle_client_side_logout_better created!