Classes

Class: StytchClient

chord-stytch.StytchClient

The StytchClient is a Chord compatabile wrapper around the following Stytch libraries.



JS


Constructors

constructor

new StytchClient(options)

Parameters

Name

Type

options

Defined in

Properties

client

client: StytchHeadlessClient

Defined in



redirectPath

Private redirectPath: string

Defined in



sessionDurationMinutes

Private sessionDurationMinutes: number

Defined in

Methods

currentUrlHandlesCallback

currentUrlHandlesCallback(): boolean

Returns

boolean

Defined in



getServiceClient

getServiceClient(): StytchHeadlessClient

Returns

StytchHeadlessClient

Defined in



getToken

getToken(): Promise<string>

Returns

Promise<string>

Defined in



getUser

getUser(): Promise<User>

Returns

Promise<User>

Defined in



handleCallback

handleCallback(): Promise<string>

Returns

Promise<string>

Defined in



isLoggedIn

isLoggedIn(): boolean

Returns

boolean

Defined in



login

login(__namedParameters): Promise<User>

Parameters

Name

Type

__namedParameters

Object

__namedParameters.email

string

Returns

Promise<User>

Defined in



logout

logout(): Promise<ResponseCommon>

Returns

Promise<ResponseCommon>

Defined in



pollLoginStatus

Private pollLoginStatus(): Promise<User>

Returns

Promise<User>

Defined in