Hypermedia
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/allypeer dependency - Configuring providers in
config/ally.ts - Adding the
withSocialIdentitymixin to the User model - Creating the migration for the
social_identitiestable
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.