Skip to main content

activateUser

User activation.

Description

This method activates a user with the service code sent to them (typically after generateCode() and checkCode()). Returns true (if the user was successfully activated) or false. It returns a Promise that resolves to a boolean value.

AuthProvider.activateUser(

marker*, userIdentifier*, code*

);

Parameters schema

Schema

marker:* string
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

code:* string
Service code
example: 123456

Examples

Minimal example

const response = await AuthProvider.activateUser('email', 'example@oneentry.cloud', '123456');

Example response

true