import { LOGIN_PROVIDER } from "@toruslabs/openlogin-utils";
export function capitalizeFirstLetter(string) {
    return string.charAt(0).toUpperCase() + string.slice(1);
}
export const PASSWORDLESS_BACKEND = {
    mainnet: "https://admin.openlogin.com",
    cyan: "https://admin.openlogin.com",
    aqua: "https://admin.openlogin.com",
    testnet: "https://lrc.admin.openlogin.com",
    development: "https://lrc.admin.openlogin.com",
};
export const OPENLOGIN_PROVIDERS = Object.values(LOGIN_PROVIDER).filter((x) => x !== LOGIN_PROVIDER.WEBAUTHN && x !== LOGIN_PROVIDER.JWT);
export const OPENLOGIN_PROVIDERS_NAMES = OPENLOGIN_PROVIDERS.reduce((acc, x) => {
    if (x === "email_passwordless")
        acc[x] = "Email";
    else if (x === "sms_passwordless")
        acc[x] = "Mobile";
    else
        acc[x] = capitalizeFirstLetter(x);
    return acc;
}, {});
//# sourceMappingURL=config.js.map