Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263export type LoginInfo = { email: string; password: string; returnSecureToken?: true;};
export type LoginResponse = RegisterResponse & { displayName: string; registered: boolean;};
export type RegisterInfo = LoginInfo & { name: string;};
export type RegisterResponse = { kind: string; idToken: string; email: string; refreshToken: string; expiresIn: string; localId: string;};
export type ReAuthResponse = { access_token: string; expires_in: string; token_type: string; refresh_token: string; id_token: string; user_id: string; project_id: string;};
export type RankResponse = { input: string; message?: string;};
export type ApiErrors = { error: { message: 'TOKEN_EXPIRED' | 'USER_DISABLED'; };};
export type FirebaseReauthError = { error: { code: number; message: | 'TOKEN_EXPIRED' | 'INVALID_REFRESH_TOKEN' | 'MISSING_REFRESH_TOKEN' | 'USER_DISABLED' | 'USER_NOT_FOUND' | 'INVALID_GRANT'; status: string; };};
export type NonNullableObject<T extends Record<string, unknown>> = { [P in keyof T]: NonNullable<T[P]>;};