Create private session

You can create private portal sessions using the SDK. Here is an example of how to create a private session:

import { Keyforge } from 'keyforge-js';
 
const keyforge = new Keyforge('sk_1234');
 
const { url } = await keyforge.portal.createPrivateSession({
  email: '[email protected]',
});

Parameters

PropTypeDefault
email
string
-

Returns

Here is an example of the returned session object:

{
  "url": "https://keyforge.dev/[email protected]&token=7dbaeb4d-aeb9-4a7b-ad36-e4f881abdab3"
}

On this page