webrecorder / browsertrix

Browsertrix is the hosted, high-fidelity, browser-based crawling service from Webrecorder designed to make web archiving easier and more accessible for all!
https://browsertrix.com
GNU Affero General Public License v3.0
186 stars 33 forks source link

Handle expired JWT #22

Closed SuaYoo closed 2 years ago

SuaYoo commented 2 years ago

JWT expires in 60 minutes by default, handle if expired

Also, refresh tokens are possibility: https://fastapi-users.github.io/fastapi-users/configuration/authentication/jwt/#tip-refresh (cc @ikreymer)

ikreymer commented 2 years ago

Can now be handled by getting a new JWT from /auth/jwt/refresh before expiry, (default expiry is 3600 seconds)