Skip to main content

actions/authenticate

Functions

authenticate()

authenticate(config, loginParams?): Promise\<boolean>

Logs the user in through the configured auth adapter. It is unlikely that you will need to call this function directly as the SDK will handle authentication automatically.

Parameters

config

the configuration

loginParams?: LoginParams

the login parameters

Returns

Promise\<boolean>

a promise that resolves to true if the user has been successfully authenticated, false otherwise