Class: StytchClient
chord-stytch.StytchClient
The StytchClient is a Chord compatabile wrapper around the following Stytch libraries.
• new StytchClient(options)
Name | Type |
---|---|
options |
• client: StytchHeadlessClient
• Private redirectPath: string
• Private sessionDurationMinutes: number
▸ currentUrlHandlesCallback(): boolean
boolean
▸ getServiceClient(): StytchHeadlessClient
StytchHeadlessClient
▸ getToken(): Promise<string>
Promise<string>
▸ getUser(): Promise<User>
Promise<User>
▸ handleCallback(): Promise<string>
Promise<string>
▸ isLoggedIn(): boolean
boolean
▸ login(__namedParameters): Promise<User>
Name | Type |
---|---|
__namedParameters | Object |
__namedParameters.email | string |
Promise<User>
▸ logout(): Promise<ResponseCommon>
Promise<ResponseCommon>
▸ Private pollLoginStatus(): Promise<User>
Promise<User>