Appkey Web SDK API Reference

Early Access

API Registration Reference

Handles user registration with customizable localization and translation options.

Javascript
Copy

Types and Interfaces

Localization

Available localization

Localization Enum:

KeyValue
ARarArabic
DEdeGerman
ENenEnglish
ESesSpanish
FRfrFrench
GAgaGaelic
HEheHebrew
ITitItalian
JAjaJapanese
NLnlDutch
PTptPortuguese
ROroRomanian
Javascript
Copy

Translation Keys

Available translation keys for UI text:

Translation Key Enum:

KeyValue
REGISTRATION_TITLEregistration.title
REGISTRATION_SUBTITLEregistration.subTitle
REGISTRATION_DESCRIPTIONregistration.description
REGISTRATION_CANCELregistration.cancel
AUTHENTICATION_TITLEauthentication.title
AUTHENTICATION_SUBTITLEauthentication.subTitle
AUTHENTICATION_DESCRIPTIONauthentication.description
AUTHENTICATION_CANCELauthentication.cancel
Javascript
Copy

Type Definition

TLangTranslations

Key (ETranslationKey)Value (string)
registration.titlestring
registration.subTitlestring
registration.descriptionstring
registration.cancelstring
authentication.titlestring
authentication.subTitlestring
authentication.descriptionstring
authentication.cancelstring

TTranslations

Key (ELocalization)Value (TLangTranslations)
arTLangTranslations
deTLangTranslations
enTLangTranslations
......
Javascript
Copy

IRegistration

PropertyTypeDescription
appkeyRegClientRequeststringBase64 encoded registration request
languageELocalizationLanguage code for localization
translationsTTranslationsTranslation object
Javascript
Copy

IResponseSuccess

PropertyTypeDescription
successtrueIndicates success
datastringResponse data
JSON
Copy

IResponseError

PropertyTypeDescription
successtrueIndicates success
datastringResponse data
errorobjectError details
errorCodenumberError code
errorMessagestringError message
Javascript
Copy

Registration Response Success Example

JSON
Copy

Error Codes and Messages

Error CodeMessage
5There is no registered user in the browser.
100001There is already a registered user in the browser.
100002Unknown error occurred
100003Unknown error occurred
100004Fido request not valid.
100005There is no authenticators.
100006Transaction cancel.
JSON
Copy

API Authentication Reference

Handles user authentication with customizable localization, translation and transactionCallback options.

Javascript
Copy

IAuthentication

PropertyTypeDescription
appkeyAuthClientRequeststringBase64 encoded authentication request
languageELocalizationLanguage code for localization
translationsTTranslationsTranslation object
transactionCallback(transactionText) => Promise<true>false
JSON
Copy

Authentication Response Success Example

JSON
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard