UNPKG

@uprtcl/http-provider

Version:

_Prtcl provider wrappers around the native fetch api

13 lines (12 loc) 559 B
import { Auth0Client, Auth0ClientOptions } from '@auth0/auth0-spa-js'; import { AuthTokenStorage } from './http.token.store'; import { HttpAuthentication, JwtToken } from './http.authentication'; export declare const loginMessage: (nonce: string) => string; export declare class HttpAuth0Token implements HttpAuthentication { store: AuthTokenStorage; auth0: Auth0Client; constructor(auth0Config: Auth0ClientOptions); obtainToken(): Promise<JwtToken>; checkLoginCallback(): boolean; parseLoginResult(): Promise<JwtToken>; }