UNPKG

android-credential-manager

Version:

An expo module to access the new Android credential Manager. Supports username/password, Passkeys and Google Sign In. This module is built to use the suggested and latest way to sign in users through Google

36 lines (30 loc) 755 B
import { LoginProviderType } from "./loginProviders/types"; export type LoginResponse = | LoginErrorResponse | UsernamePasswordLoginResponse | GoogleLoginResponse | PassKeyLoginResponse; export interface LoginErrorResponse { name: "Error"; type: string; message: string; } export interface UsernamePasswordLoginResponse { name: LoginProviderType.USERNAME_PASSWORD; username: string; password: string; } export interface GoogleLoginResponse { name: LoginProviderType.GOOGLE; displayName: string; familyName: string; givenName: string; id: string; idToken: string; phoneNumber: string; profilePictureUri: string; } export interface PassKeyLoginResponse { name: LoginProviderType.PASSKEY; responseJSON: string; }