UNPKG

fitbit-api-client

Version:
24 lines 662 B
import { FitbitScope } from '../../types'; export interface OAuthSession { state: string; codeVerifier: string; codeChallenge?: string; challengeMethod?: string; redirectUrl?: string; } /** * リフレッシュトークンのみ必須 */ export type PartialAuthToken = { refreshToken: AuthToken['refreshToken']; } & Partial<Omit<AuthToken, 'refreshToken'>>; export interface AuthToken { accessToken: string; expiresAt: Date; refreshToken: string; scope: FitbitScope[]; tokenType: string; userId: string; } export declare function AuthTokenFromJson(json: unknown): AuthToken; //# sourceMappingURL=session.d.ts.map