Social authentication with Inertia #4762
-
I'm new to Adonis and Inertia. Can you guide me on integrating social authentication (like Google, Facebook, etc.) into my Adonis application using Inertia? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hey @kbarbier! 👋🏻 What have you tried so far? It should work similarly to a standard API or SSR setup. Your app will make a request to AdonisJS, which then redirects to the OAuth provider. After authentication, the OAuth provider sends the user back to your callback route. 📚 https://docs.adonisjs.com/guides/authentication/social-authentication |
Beta Was this translation helpful? Give feedback.
-
client
backend
|
Beta Was this translation helpful? Give feedback.
-
Hello, I had same error with ally and github.
Here is my configuration of cors in adonis :
|
Beta Was this translation helpful? Give feedback.
Hey @kbarbier! 👋🏻
What have you tried so far?
It should work similarly to a standard API or SSR setup. Your app will make a request to AdonisJS, which then redirects to the OAuth provider. After authentication, the OAuth provider sends the user back to your callback route.
📚 https://docs.adonisjs.com/guides/authentication/social-authentication