You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling authenticate, the SafariView launches correctly, seems to authenticate correctly, and then returns me to the app with the following error: ...userInfo: { NSLocalizedDescription: '{"status":400,"message":"missing client secret"}
While providing client secret for client authentication is non-ideal (and seemingly isn't required by Twitch), adding my client secret to the config throws this error: ...userInfo: { NSLocalizedDescription: '{"status":400,"message":"missing client id"}\n' }
(client id is still present)
I'd appreciate it if anyone could check if I've I configured it wrong, though I'm using very similar config on other platforms successfully, or otherwise help me figure out why am I getting these errors. Twitch's docs on authentication can be found here: https://dev.twitch.tv/docs/authentication
Would be happy to provide other info if needed.
Thanks!
The text was updated successfully, but these errors were encountered:
Looks like the reason this doesn't work is because the parameters in the token exchange are meant to be sent in the request body, but for some reason with Twitch, they want them sent as url params.
We just released v6.0.0 which allows you to skip the code exchange step and handle the request manually. I was able to get twitch auth to work like so:
Hello,
I'm trying to use react-native-app-auth to provide authentication with Twitch for my iOS app. I am using this config:
When calling authenticate, the SafariView launches correctly, seems to authenticate correctly, and then returns me to the app with the following error:
...userInfo: { NSLocalizedDescription: '{"status":400,"message":"missing client secret"}While providing client secret for client authentication is non-ideal (and seemingly isn't required by Twitch), adding my client secret to the config throws this error:
...userInfo: { NSLocalizedDescription: '{"status":400,"message":"missing client id"}\n' }(client id is still present)
I'd appreciate it if anyone could check if I've I configured it wrong, though I'm using very similar config on other platforms successfully, or otherwise help me figure out why am I getting these errors. Twitch's docs on authentication can be found here: https://dev.twitch.tv/docs/authentication
Would be happy to provide other info if needed.
Thanks!
The text was updated successfully, but these errors were encountered: