generateCode
Getting the code to activate the user.
Description
This method receives a code to activate the user. Code is returned through the corresponding user notification method. It returns a Promise that resolves to a boolean value: true - if the code was sent successfully, false - if there was an error sending the code.
AuthProvider.generateCode(
marker*,
userIdentifier*,
eventIdentifier*
);
Parameters schema
Schema
marker:* array
The text identifier of the authorization provider
example: email
userIdentifier:* string
The text identifier of the user's object (user login)
example: example@oneentry.cloud
eventIdentifier:* string
Text identifier of the event object for which the code is generated
example: auth
Examples
Minimal example
const response = await AuthProvider.generateCode('email', 'example@oneentry.cloud', 'auth');