How to ensure I have a fresh access token with starlette. #718
Unanswered
gillespied
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I read this comment: #359
But I'm really struggling to see how to implement it. I include this minimal app below. I want to use cognito to permit access to my app, I am also using cognito to secure an api in aws. At somepoint I want to call the api endpoint so need a new access token. This may be a long time after I'm logged in. I thought I might refresh before calling the token. That let me to the linked comment that says the client handles refreshing automatically but I am at a loss to see how I acheive that.
Could someone please give me a steer what I need to do? I was trying to keep track of the tokens, but I didnt really want to have server side storage, and they are too large so they get silently dropped.
Beta Was this translation helpful? Give feedback.
All reactions