UNPKG

@alauda-fe/common

Version:

Alauda frontend team common codes.

16 lines (15 loc) 689 B
import type { AccountInfo, TokenResponse } from './token-client'; export declare function getCachedAccountInfo(): AccountInfo; export declare function fetchAuthorizationState(): Promise<{ info: AccountInfo; }>; export declare function attachAuthorizationHeader(): { Authorization?: string; }; export declare function checkAuthorizationToken(): Promise<AccountInfo>; export declare function refreshAuthorizationToken(): Promise<TokenResponse>; export declare function logoutAudit(): Promise<{ logout_redirect_url?: string; }>; export declare function logout(returnCurrentPage?: boolean | string): Promise<never>; export declare function redirectSSOEntry(entry: string): string;