fitbit-api-client
Version:
## ⚠️ This SDK is not ready for production
24 lines • 662 B
TypeScript
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