Open aghure opened 1 year ago
@aghure that is one way to accomplish this manually, but if you want this to automatically be updated in cookies, you'll need to specify that in the response headers manually. I think adapting a simple refresh token endpoint could also be quite easy,
How i can refresh google auth token ? If the user is active , i want to refresh the token and update the token expiry. If in get_user i check the token time and call issue token again , will it work?
` def get_user_handler(request: Request): if "token" not in request.cookies and "Authorization" not in request.headers: return None