Skip to main content

checkCode

Checking the user activation code

AuthProvider.checkCode(marker, userIdentifier, code)

const value = await AuthProvider.checkCode('email', 'example@oneentry.cloud', 'auth', 'WTGC9E')
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

eventIdentifier:* string
Text identifier of the event object for which the code is generated
example: auth

code:* string
Service code
example: WTGC9E

This method checks the user's code. Returns true (if the code is correct) or false (if it is incorrect).

Example return:

true