Replies: 7 comments 1 reply
-
|
Generally, it is not safe to store secrets in a mobile app because they can be extracted. Currently, the Kick OAuth system only supports the Authorization Grant flow, which requires a secret. To securely implement this in a mobile app, you would need the user to authenticate in an in-app browser using OAuth with your own server. In the future, I anticipate that Kick will add other OAuth flow types that do not require a secret, such as the Implicit Grant flow. However, for now, if you want to authenticate with a mobile app without leaking your client secret, you will have to use your own server as an intermediary. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, but why do the docs link to OAuth 2.0 Code Grant flow with PKCE, which describes how to authenticate without a client secret as I understand it? |
Beta Was this translation helpful? Give feedback.
-
|
That link is worded in an obnoxiously confusing way haha. But it is describing the code flow which requires a secret. The top few points there are just it telling you situations that the flow is not designed for. |
Beta Was this translation helpful? Give feedback.
-
|
You sure about that? Looks like the Authorization Code Flow is the one with a secret. But what do I know. Authentication is confusing =) |
Beta Was this translation helpful? Give feedback.
-
|
Authentication is indeed confusing. The docs link to the Authorization Code Flow, with PKCE which is ultimately just an extra layer of security to make sure the same system started and ended the oauth request to my understanding. The only flows that doesn't require a secret to my knowledge are "implicit" grant flows. (definitely could be wrong here but I've been doing OAuth for about 10 years now so at this point I'd hope I know what I'm talking about maybe lol) |
Beta Was this translation helpful? Give feedback.
-
|
Haha yeah for Twitch my app uses the implicit grant flow |
Beta Was this translation helpful? Give feedback.
-
|
Something I don't understand here is there's an If I'm understanding Auth0's docs, the TLDR; I'm working off the info available here: |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Is it safe to store the client secret in a mobile app, essentially leaking it? If not, how do a user login from an app directly to Kick?
Beta Was this translation helpful? Give feedback.
All reactions