Twitch oauth2 login stuck in callback loop #1499
Replies: 4 comments
-
Hey @Kazuto I need to exchange the code for tokens as described here: I am doing this via a plugin in the module auth.ts:
My problem is that I always get an error saying: |
Beta Was this translation helpful? Give feedback.
-
Hey @a-syde I still haven't been able to solve the issue. |
Beta Was this translation helpful? Give feedback.
-
@Kazuto The solution applies to Keycloak, however, it should almost be identical to Twitch and other OAuth2 systems. In
I need the plugin
The takeaway is you don't need a plugin to verify the token, the auth module does it automatically for you if you configure it correctly. Even refresh tokens will be automatically renewed. |
Beta Was this translation helpful? Give feedback.
-
My wish is to have the possibility to change the routes in redirect dynamically in runtime, so the user gets redirected back to the locale he chose before logging in.
As you see above, it will always by The potential solution woud be something like:
I tried the solution above, unfortunately, it is not working. |
Beta Was this translation helpful? Give feedback.
-
I'm using auth-next and I'm trying to create a "Login with Twitch" strategie but no matter what I try I can't seem to get to work.
My callback function
If I return
res.json(data)
i get everything I need. I just can't return it to the auth module.I've created a post on cmty.app almost two weeks ago but apparently no one uses the platform.
https://cmty.app/nuxt/auth-module/issues/c654
Beta Was this translation helpful? Give feedback.
All reactions