You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the Starlette integration. I would like to update my token in database whenever Authlib gets a fresh token from a client.get call, so that it won't have to refresh on the next request if the newer token is still valid.
So far, the only way that I've found to get access to a renewed token that I can save somewhere and reuse is with something in the lines of:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey there, thanks for the great work on Authlib!
I'm using the Starlette integration. I would like to update my token in database whenever Authlib gets a fresh token from a
client.get
call, so that it won't have to refresh on the next request if the newer token is still valid.So far, the only way that I've found to get access to a renewed token that I can save somewhere and reuse is with something in the lines of:
This seems quite hackish to me and I guess there is a much better way but I can't find it. Any hint? :)
Beta Was this translation helpful? Give feedback.
All reactions