Nhost Authentication is a ready-to-use authentication service that is integrated with the GraphQL API and its permission system from Hasura.
Nhost Authentication lets you authenticate users using different sign-in methods:
- Email and Password
- Magic Link
- Phone Number (SMS)
- Security Keys (WebAuthn)
How it works
- When a user signs up or is created, the user's information is inserted into the
auth.userstable in your database.
- Nhost returns an access token and a refresh token, together with the user's information.
- The user sends requests to Nhost services (GraphQL API, Authentication, Storage, Functions) with the access token as a header.
- The Nhost services use the user's access token to authorize the requests.
Nhost Autentication is integrated with your database. All users are stored in the
users table in the