getAuthProviderByMarker
Get one auth provider object by marker. It returns a Promise that resolves to an IAuthProvidersEntity object.
Description
AuthProvider.getAuthProviderByMarker(
marker,
langCode
);
Parameters schema
Schema
marker(required): string
The text identifier of the authorization provider
example: "email"
langCode: string
Language code. Default: "en_US"
example: "en_US"
Examples
Minimal example
const response = await AuthProvider.getAuthProviderByMarker('email');
Example with attributes
const response = await AuthProvider.getAuthProviderByMarker('email', 'en_US');
Example response
{
"id": 1,
"localizeInfos": {
"title": "email"
},
"config": {
"accessTokenTtlSec": "36000",
"refreshTokenTtlMc": "604800",
"tokenSecretKey": "my-secret",
"deleteNoneActiveUsersAfterDays": "2",
"systemCodeTlsSec": "120",
"systemCodeLength": "6"
},
"version": 0,
"identifier": "email",
"type": "email",
"formIdentifier": "reg",
"userGroupIdentifier": "guest",
"isActive": true,
"isCheckCode": false
}