Using Cosmic Auth

Learn how to implement Cosmic Auth into your project to support user sign-in functionality.

Usage

At any point, ask Cosmic to integrate auth or sign-in functionality into your project. You can also ask it to implement protected route, if you only want authenticated users to access certain pages.

Sign-in functionality

When Cosmic integrates auth into your project, users will directed to an auth service at auth.cosmic.new to sign in. Several proviers and sign in methods are supported.

  • Google sign-in
  • Github sign-in
  • Email and password sign in

We currently do not support adding or removing providers on a per-project basis. For email and password, password recovery is already integrated.

User Management

When integrating Cosmic Auth, by default, Cosmic Database will be enabled. This is because anytime an user signs in, an entry will be created under a users collection in the database.

You can view this information by visiting the database panel in the dashboard.