Authentication methods a.k.a. providers¶
Hasura auth has support for multiple ways to authenticate (i.e. login/register) a user. e.g. username-based, email-based, mobile-based, social logins, etc.
Hasura auth calls each authentication method a “provider”.
You can enable/disable providers in your auth configuration. Once a provider is enabled you can use them to signup your users. You can have multiple providers enabled at the same time.
Also, if you have an existing custom authentication system you can create a custom provider and configure it with Hasura auth.
The following providers come by default with Hasura auth:
Provider | Provider Name (in API) | Description |
---|---|---|
Username | username |
Basic username and password based authentication. |
email |
Email and password based authentication, with email verification. | |
Mobile/OTP | mobile |
Mobile-based password-less authentication. For signup and login an OTP is sent to the mobile number. |
Mobile/Password | mobile-password |
Mobile and password based authentication, with mobile verification. |
google |
Google login based authentication. | |
facebook |
Facebook login based authentication. | |
linkedin |
Linkedin login based authentication. | |
Github | github |
Github login based authentication. |
Choose providers from the above based on your requirement.
See more about providers:
Was this page helpful?