Class CogniteAuthentication
Constructors
constructor
- new CogniteAuthentication(__namedParameters: { baseUrl: undefined | string; project: string }): CogniteAuthentication
-
Parameters
-
__namedParameters: { baseUrl: undefined | string; project: string }
-
baseUrl: undefined | string
-
project: string
Methods
getCDFToken
- getCDFToken(): Promise<AuthTokens | null>
handleLoginRedirect
- handleLoginRedirect(): Promise<AuthTokens | null>
login
- login(__namedParameters: { onAuthMethod: undefined | OnAuthenticate | "REDIRECT" | "POPUP" }): Promise<AuthTokens | null>
-
Parameters
-
__namedParameters: { onAuthMethod: undefined | OnAuthenticate | "REDIRECT" | "POPUP" }
Returns Promise<AuthTokens | null>