Skip to main content

@truework/credentials

Table of contents#

Enumerations#

Functions#

Enumerations#

Env#

β€’ Env: Enum Env

Enum for the environment that the session will be initialized in

ValueDescription
developmentDevelopment Environment
productionProduction Environment

Functions#

init#

β–Έ init(token, options?)

Initializes the session

Parameters#

NameTypeDescription
tokenstringToken for the session that should be initialized
optionsobjectOptional options object
options.envEnvEnvironment the session should be initialized in

Returns#

Session object

NameDescription
closeCloses the modal
onCloseTakes a callback function to be called after the modal is closed
onCompleteTakes a callback function to be called on completion
onErrorTakes a callback function to be called after an error
onOpenTakes a callback function to be called after the modal is opened
openOpens the modal