Skip to main content


Initial Setup

The LoginID Server SDK enables you to perform operations which are protected, enabling much more robust functionality for your users.

Create API Credential on the Dashboard

An application must be created on the LoginID Dashboard in order to correctly configure the Server SDK.

Once logged into the dashboard, navigate to the Applications tab in the sidebar, select “Add Application,” and select Management / Server.

In the resulting form, you must create a name for your application and provide an API credential to be associated with this application. If you have already created an application, we suggest using the naming convention of “{my-app) server.”

When adding the API credential, you can either upload your own public key, or have us generate a key pair on your behalf.


All API calls made from a Management integration type require an API Service Token

Add SDK to Existing Application

npm install --save @loginid/node-sdk

Add SDK to Existing Application

import WebSDK from '@loginid/node-sdk';
const lAdmin = new WebSDK(CLIENT_ID, PRIVATE_KEY, BASE_URL);

Application API Reference

LoginId Class


This server SDK leverages either a web or mobile application and requires an API credential to be assigned to that integration.

Helper Functions


Generate a service token, to be used when making protected API calls. Not required when calling other methods with the server SDK.


Verify a JWT returned upon user authentication.


Generates the bearer token to be used in the transaction confirmation flow, as it has a specific format slightly different from the standard service tokens. This function generates that token. If calling the createTx method, this function does not need to be called first.


Create a transaction. This is typically the first step of the transaction confirmation flow.


Verify the jwt returned in the confirmTransaction flow.

Management API Reference


LoginIdManagement Constructor

This server SDK can be used with a management application and requires an API credential to be assigned to that integration. All calls made from this SDK are intended to be backend-to-backend calls, as the operations are sensitive.

Credential Management Functions


Get an exhaustive list of credentials for a given user.


Rename a given credential.


Revoke a credential so it can longer be used.


Generate a code, which can be used for a variety of purposes. Check out the guides section for how various ways these codes can be used.


Authorize a code which was previously generated through the generateCode method.


Invalidate all codes of a given type for a specific user.

User Management Functions


Get a user identifier for a given username.


Temporarily deactivate a user account.


Re-activate a previously deactivated user profile.


Deletes a user profile based on a userId as the input. This operation cannot be undone.


Deletes a user profile based on a username as the input. This operation cannot be undone.


Adds a new user without credentials. The new user can create new credentials with recovery flow