https://www.loom.com/share/6b5103d05e9a4536b0cc13f2ebfe8e8b

How does DashboardAuth work?

When you create an application on dashboardauth.com, you must provide a dashboard URL and choose a subdomain. Your users can sign up and log in through the provided subdomain (e.g., if your subdomain is “docs” your users can access “docs.dashboardauth.com”). Feel free to set up a custom domain redirect.

Once a user is logged in, they will see an iframe of your dashboard. In the iframe, we will pass the user's token as a GET parameter called token.

To validate the token, you can send an authenticated GET request to https://api.dashboardauth.com/get-user, using the Authorization header with Bearer <token>. The response for an authenticated user will look like this:

{
  "application_id": 2,
  "created_at": "Tue, 06 Dec 2022 16:35:00 GMT",
  "deleted": false,
  "email": "EMAIL",
  "id": ID,
  "last_active": "Tue, 06 Dec 2022 16:35:00 GMT",
  "verified": false
}

With this information, you can securely authenticate and manage access to your dashboard.