supertokens-react-native
Version:
React Native SDK for SuperTokens
22 lines (21 loc) • 1.14 kB
TypeScript
import { InputType, RecipeInterface } from "./types";
export default class AuthHttpRequest {
private static axiosInterceptorQueue;
static init(options: InputType): void;
static getUserId(): Promise<string>;
static getAccessTokenPayloadSecurely(): Promise<any>;
static attemptRefreshingSession: () => Promise<boolean>;
static doesSessionExist: () => Promise<boolean>;
static addAxiosInterceptors: (axiosInstance: any) => void;
static signOut: () => Promise<void>;
static getAccessToken: () => Promise<string | undefined>;
}
export declare let init: typeof AuthHttpRequest.init;
export declare let getUserId: typeof AuthHttpRequest.getUserId;
export declare let getAccessTokenPayloadSecurely: typeof AuthHttpRequest.getAccessTokenPayloadSecurely;
export declare let attemptRefreshingSession: () => Promise<boolean>;
export declare let doesSessionExist: () => Promise<boolean>;
export declare let addAxiosInterceptors: (axiosInstance: any) => void;
export declare let signOut: () => Promise<void>;
export declare let getAccessToken: () => Promise<string | undefined>;
export { RecipeInterface, InputType };