@wristband/nextjs-auth
Version:
SDK for integrating your NextJS application with Wristband. Handles user authentication and token management.
13 lines (12 loc) • 626 B
TypeScript
import { SdkConfiguration, TokenResponse, Userinfo } from './types';
export declare class WristbandService {
private wristbandApiClient;
private basicAuthHeaders;
private clientId;
constructor(wristbandApplicationVanityDomain: string, clientId: string, clientSecret: string);
getSdkConfiguration(): Promise<SdkConfiguration>;
getTokens(code: string, redirectUri: string, codeVerifier: string): Promise<TokenResponse>;
getUserinfo(accessToken: string): Promise<Userinfo>;
refreshToken(refreshToken: string): Promise<TokenResponse>;
revokeRefreshToken(refreshToken: string): Promise<void>;
}