Cognite JavaScript SDK > Login

Class: Login

Hierarchy

Login

Index

Methods


Methods

<Static> authorize

authorize(params: AuthorizeParams, tokenCallback?: function): Promise<AuthResult>

Defined in Login.ts:141

Parameters:

Name Type Default value
params AuthorizeParams -
Default value tokenCallback function () => {}

Returns: Promise<AuthResult>


<Static> getLoginUrl

getLoginUrl(params: LoginParams): string

Defined in Login.ts:119

Parameters:

Name Type
params LoginParams

Returns: string


<Static> isPopupWindow

isPopupWindow(): boolean

Defined in Login.ts:330

Returns: boolean


<Static> loginWithApiKey

loginWithApiKey(apiKey: string): Promise<LoginStatus>

Defined in Login.ts:273

Parameters:

Name Type
apiKey string

Returns: Promise<LoginStatus>


<Static> loginWithRedirect

loginWithRedirect(params: LoginParams): void

Defined in Login.ts:263

Parameters:

Name Type
params LoginParams

Returns: void


<Static> popupHandler

popupHandler(): void

Defined in Login.ts:334

Returns: void


<Static> retrieveLoginUrl

retrieveLoginUrl(params: LoginParams): Promise<string>

Defined in Login.ts:318

Parameters:

Name Type
params LoginParams

Returns: Promise<string>


<Static> stopAutoAuthorize

stopAutoAuthorize(): void

Defined in Login.ts:258

Returns: void


<Static> validateJWT

validateJWT(token: string): Promise<TokenStatus>

Defined in Login.ts:291

Parameters:

Name Type
token string

Returns: Promise<TokenStatus>


<Static> verifyStatus

verifyStatus(): Promise< null | LoginStatus>

Defined in Login.ts:303

Returns: Promise< null | LoginStatus>