Claire_Kinde
Claire_Kinde
KKinde
Created by Claire_Kinde on 5/13/2024 in #💻┃support
From @jasdeep about tokens
Copied from #💬┃general channel - a question from @jasdeep Hi all, newbie here and building a flutter app using Kinde Auth. I am trying to understand how this works. As per docks Kinde SDK take care of fetching new token automatically under the hood if refresh token is valid and access_token has expired. I am assuming it is happening while user is very much active on the app. I am wondering how does SDK get access to refreshToekn in scenario when user navigates away from the app and puts the app in background and when app comes back into focus, the access_token has expired but refresh token should still be valid. I understand that I can save access_token and refreshToken in secure storage but I don't see any method available on SDK which makes use of refresh token to fetch new access_token. Am I missing something here?
2 replies