Skip to Content

registerWithNativeAuthentication()

registerWithNativeAuthentication(projectId, input): Promise<{ accessToken: string; customer: string; project: string; refreshToken: string; sandboxMode: boolean; }>;

Registers a customer with Modem’s native authentication and issues its tokens. The customer is keyed by metadata.authId: registering an id again issues tokens for the same customer.

Parameters

projectId

string

input

metadata

{ authId: string; authProvider: string; } = ...

metadata.authId

string = CustomerAppUserIdSchema

metadata.authProvider

string = ...

Last updated on