Appkey Web SDK API Reference
Early Access
API Registration Reference
Handles user registration with customizable localization and translation options.
Types and Interfaces
Localization
Available localization
Localization Enum:
Key | Value | |
|---|---|---|
AR | ar | Arabic |
DE | de | German |
EN | en | English |
ES | es | Spanish |
FR | fr | French |
GA | ga | Gaelic |
HE | he | Hebrew |
IT | it | Italian |
JA | ja | Japanese |
NL | nl | Dutch |
PT | pt | Portuguese |
RO | ro | Romanian |
Translation Keys
Available translation keys for UI text:
Translation Key Enum:
Key | Value |
|---|---|
REGISTRATION_TITLE | registration.title |
REGISTRATION_SUBTITLE | registration.subTitle |
REGISTRATION_DESCRIPTION | registration.description |
REGISTRATION_CANCEL | registration.cancel |
AUTHENTICATION_TITLE | authentication.title |
AUTHENTICATION_SUBTITLE | authentication.subTitle |
AUTHENTICATION_DESCRIPTION | authentication.description |
AUTHENTICATION_CANCEL | authentication.cancel |
Type Definition
TLangTranslations
Key (ETranslationKey) | Value (string) |
|---|---|
registration.title | string |
registration.subTitle | string |
registration.description | string |
registration.cancel | string |
authentication.title | string |
authentication.subTitle | string |
authentication.description | string |
authentication.cancel | string |
TTranslations
Key (ELocalization) | Value (TLangTranslations) |
|---|---|
ar | TLangTranslations |
de | TLangTranslations |
en | TLangTranslations |
... | ... |
IRegistration
Property | Type | Description |
|---|---|---|
appkeyRegClientRequest | string | Base64 encoded registration request |
language | ELocalization | Language code for localization |
translations | TTranslations | Translation object |
IResponseSuccess
Property | Type | Description |
|---|---|---|
success | true | Indicates success |
data | string | Response data |
IResponseError
Property | Type | Description |
|---|---|---|
success | true | Indicates success |
data | string | Response data |
error | object | Error details |
errorCode | number | Error code |
errorMessage | string | Error message |
Registration Response Success Example
Error Codes and Messages
Error Code | Message |
|---|---|
5 | There is no registered user in the browser. |
100001 | There is already a registered user in the browser. |
100002 | Unknown error occurred |
100003 | Unknown error occurred |
100004 | Fido request not valid. |
100005 | There is no authenticators. |
100006 | Transaction cancel. |
API Authentication Reference
Handles user authentication with customizable localization, translation and transactionCallback options.
IAuthentication
Property | Type | Description |
|---|---|---|
appkeyAuthClientRequest | string | Base64 encoded authentication request |
language | ELocalization | Language code for localization |
translations | TTranslations | Translation object |
transactionCallback | (transactionText) => Promise<true> | false |
Authentication Response Success Example