User Auth

Support for User Auth is being rolled out in stages. If you don't see it yet and are interested please contact us for early access.

User Auth allows your users to log in using social logins (Google, Github, ...). The data (user accounts and credentials) are stored on your database so you can query them like any other object.

We currently only support MySQL and MongoDB. If you are interested in using User Auth with PostgreSQL, please reach out to us.

Setup

Enable User Auth in the schema

To enable User Auth, your schema needs to have it enabled first. To do this, just click the "Enable User Auth" toggle in the schema editor and create a new commit with the schema.

Configuring User Auth

Before configuring User Auth, make sure that you have an environment with the new Auth-enabled Commit running (see Creating a new Environment).

Once you configured the environment to use your new commit, you will see a "User Auth" tab in the environment dashboard.

In this tab you'll first set the redirect URL. This is where your application is running at and where your users will be redirected to after a successful login. Here we chose http://example.com

After that you will be prompted to add one or more Authentication Providers.

For every provider you will need a Client ID and Client Secret.

To set up the clients at the providers, see one of the following:

After you are done adding your providers you can test your login by following the sign-in link below the provider table.

Integration into your application

We make it very easy to add User Auth to your NextJS Application. Just head tohttps://github.com/neurelo-public/neurelo-auth-next and follow the README to get started.

If you would like to use User Auth with a different framework please reach out to us.

Last updated