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

23 lines 922 B
export const createCredErrorHandler = (errorData) => { switch (errorData.type) { case "CreateCredentialCancellationException": throw new Error("User cancelled the operation"); case "CreateCredentialInterruptedException": throw new Error("Operation was interrupted can be retried"); default: throw new Error(errorData.message); } }; export const loginErrorHandler = (errorData) => { switch (errorData.type) { case "GetCredentialCancellationException": throw new Error("User cancelled the operation"); case "LoginCredentialInterruptedException": throw new Error("Operation was interrupted can be retried"); case "NoCredentialException": throw new Error("No credentials found"); default: throw new Error(errorData.message); } }; //# sourceMappingURL=ErrorHandler.js.map