I am making an app and I have a few questions about Amazon Cognito:
I read that when you sign in to Cognito it returns a JWT token consisting of: ID token, access token, and refresh token. My first question is, where do I save these tokens in my app so the user can continue to be logged in and doesn't have to log in ever time? Do I save it in a state or in a cookie etc or somewhere else? I don't understand this.
How do I use the JWT to make authenticated api requests?
How do I refresh a JWT behind the scenes so a user can stay signed in? This isn't clear to me in the documentation. Once the JWT expires, how does can the user remain logged in without having to sign in every time?
Thanks!