React

Setup

At the end of this guide, you will have your application configured and ready to use all Social Auth components.

This guide walks you through configuring OAuth providers via @adonisjs/ally, adding the withSocialIdentity mixin to your User model, and creating the database migration for the social_identities table. All subsequent Social Auth guides build on this foundation.

The setup includes:

  • Installing the @adonisjs/ally peer dependency
  • Configuring providers in config/ally.ts
  • Adding the withSocialIdentity mixin to the User model
  • Creating the migration for the social_identities table
Note

This guide requires you to have completed the regular auth components first. Social Auth slots into the existing email and password flows and reuses email verification and the profile page.

Unlock access
Only Plus subscribers can access the documentation
Log in now
Terms & License Agreement