@inventivetalent/xboxlive-auth
Version:
A light but advanced Xbox Live authentication module with OAuth2.0 and Electron support
7 lines (6 loc) • 753 B
TypeScript
import { LiveAuthResponse, LiveCredentials, LivePreAuthResponse, LivePreAuthOptions } from '../..';
export declare const getAuthorizeUrl: (clientId?: string, scope?: string, responseType?: "token" | "code", redirectUri?: string) => string;
export declare const exchangeCodeForAccessToken: (code: string, clientId: string, scope: string, redirectUri: string, clientSecret?: string) => Promise<LiveAuthResponse>;
export declare const refreshAccessToken: (refreshToken: string, clientId?: string, scope?: string, clientSecret?: string) => Promise<LiveAuthResponse>;
export declare const preAuth: (options?: LivePreAuthOptions) => Promise<LivePreAuthResponse>;
export declare const authenticate: (credentials: LiveCredentials) => Promise<LiveAuthResponse>;