Skip to main content
Version: v1

Getting Started

In this guide we will show you how to create and configure your account and connect a demo application to it. This app will demonstrate common workflows like creating a passkey and using it to authenticate.

1. Check the basics

The Beyond Identity Example Application is made up of a node.js backend and a NextJS frontend. You'll need standard developer tools to get it up and running.

macOS, Windows and Linux

  1. Git: Download and install git:

  2. NodeJS: Download and install nodejs:

2. Download the example application

Clone the repo

The source code for the example application is hosted in Github.

git clone

Change directory into the repo:

cd getting-started

3. Create a Tenant

Proceed to Create a Tenant.

Once your tenant has been created with Beyond Identity, you can continue to configure the sample app, get an API token, a tenant_id, a realm_id and some other configuration parameters.

4. Make a copy of the config file

Run the following command from the home directory for the example app:

cp .env.local.example .env.local

5. Set your Region variable on the config file

Edit .env.local and set the value of the REGION variable according to where your account was created (us or eu).

6. Get your Tenant ID

Log into the Admin Console, then to get your Tenant ID:

  1. On the navigation bar to the left click Home.

  2. Click Edit Realm on the top right side of your screen, copy the Tenant ID value.

  3. Edit .env.local and paste the value of the TENANT_ID variable from the clipboard.

6. Create an API token

From the Admin Console, create an API Token for your tenant by:

  1. Click Applications.
  2. Click Beyond Identity Management API.
  3. Click API Tokens.
  4. Create a token and click the copy button, use the API Token to set the environment variables as shown below.
  5. Edit .env.local and paste the value of the API_TOKEN variable from the clipboard.

7. Configure your local environment

Create a Realm

Next, we need to create a new realm to hold identities and configuration:

From the Admin Console:

  1. Click the Realm selector on the top-left.
  2. Click Create New Realm.
  3. Type the name of your new realm. Click Create Realm.
  4. Click Switch to Realm.
  5. From the Realm's Home page, click Edit.
  6. Copy the value for Realm ID and paste it on the .env.local file under REALM_ID.

Create an Application

Next, we we'll create a new Application:

From the Admin Console:

  1. From the navigation bar, click Applications, then click Create app.
  2. Type a name for your new Application.
  3. Scroll to Redirect URIs, type http://localhost:8083/api/auth/callback/beyondidentity.
  4. Ensure "Token Endpoint Auth Method" is set to "Client Secret Basic".
  5. Click on the Authenticator Config tab, change the Configuration Type to Embedded and set the Invoke URL and Trusted Origin values to: http://localhost:8083.
  6. Click Submit to save your changes.

Complete your example application's configuration

Next, we'll copy the Application ID, Authenticator Configuration ID, App Client ID and App Secrets into the .env.local configuration.

From the Admin Console:

  1. From the navigation bar, click Applications, then select the application created on the step above.
  2. Copy the value for Application ID and paste it on the .env.local file under APPLICATION_ID.
  3. Copy the value for Client ID and paste it on the .env.local file under APP_CLIENT_ID.
  4. Copy the value for Client Secret and paste it on the .env.local file under APP_CLIENT_SECRET.
  5. Click on the Authenticator Config tab, Copy the value for Authenticator Config ID and paste it on the .env.local file under AUTHENTICATOR_CONFIG_ID.

Learn more about Authenticator Configurations.

8. Running the example application

Start the backend and frontend

  1. Install dependencies and run with:
yarn start
  1. A new browser tab should open automatically. If it doesn't, open a web browser and navigate to http://localhost:8083. The example application will now appear and allow you to create Passkeys in the browser.

What's next?

You can use the example application above to create one or more Passkeys and log in with them.

Questions? Want to see more?

Join our Slack community.