Hello all, I am new to oauth2.0. I am trying to re...
# android
o
Hello all, I am new to oauth2.0. I am trying to refresh my token silently on or before it expires so the user can continue using my service. I have a function for authorization, getting pkce authorization code and getting the refresh token. My issue is how to implement all these functions so as to enable me to refresh the token silently (without the user knowing and without interrupting the user). My current logic is to store the refresh token, the access token, and the authorization code in the data store. What I do is onStart, I check if the authorization code is empty if it is true it performs the authorization function then it always performs the getting pkce authorization code function. I am sure there is a better way to do this and I would really appreciate it if anyone could assist me with this. TIA
not kotlin but kotlin colored 4
c
• Please remember this is a Slack team for Kotlin. If you have generic questions that are about a technology (which may or may not be used with Kotlin), maybe it’s better to use another forum, such as StackOverflow.
https://kotlinlang.org/docs/slack-code-of-conduct.html#basic-usage-guidelines
o
Hello @Chrimaeon. I am well aware that this is a slack team for kotlin. It's just that I need assistance with implementing oauth2.0 refresh tokens in android using kotlin. So I came to this forum and searched for an android general channel and found this channel. I don't know if you can be of assistance. Thank you.
c
You can try in android slack channels linked in this channel description.
your question is a general android question that has nothing to do with Kotlin specifically.
☝️ 1