Replies: 2 comments
-
You can use cookies for storing and retrieving the state. |
Beta Was this translation helpful? Give feedback.
0 replies
-
you can abuse the scope or redirect params. here's the docs: https://docs.adonisjs.com/guides/authentication/social-authentication#defining-scopes https://docs.adonisjs.com/guides/authentication/social-authentication#defining-redirect-query-params |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Using Adonis Ally, is there a way to pass params inside the redirect url to the callback ?
For example, I have two google sign-in buttons in two places in the app, for two different type of users.
I want to create the correct user type according the button used.
A way to do this would be to use a custom state with a base64 encoding of the type (and a random key to keep it secure), and retrieve it back in the callback.
I didn't find a way to specify the state in the docs. Do you have any idea?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions