signicat-client-ts
Version:
Community TypeScript client for Signicat Authentication REST API with automatic token management
31 lines (30 loc) • 1.4 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isValidAuthenticationProvider = exports.AuthenticationProvider = void 0;
/**
* Supported authentication providers for Signicat
*/
var AuthenticationProvider;
(function (AuthenticationProvider) {
AuthenticationProvider["FTN"] = "ftn";
AuthenticationProvider["NBID"] = "nbid";
AuthenticationProvider["MOJEID_PL"] = "mojeid-pl";
AuthenticationProvider["BEID"] = "beid";
AuthenticationProvider["AUSWEISAPP"] = "npa";
AuthenticationProvider["SK_MOBILEID"] = "sk-mobileid";
AuthenticationProvider["ET_SMARTCARD"] = "et-smartcard";
AuthenticationProvider["EPARAKSTS_MOBILE"] = "eparaksts-mobile";
AuthenticationProvider["IDIN"] = "idin";
AuthenticationProvider["MITID"] = "mitid";
AuthenticationProvider["SAMLEIKIN"] = "samleikin";
AuthenticationProvider["SPID"] = "spid";
AuthenticationProvider["ITSME"] = "itsme";
AuthenticationProvider["AUDKENNI_MOBILEID"] = "audkenni-mobileid";
})(AuthenticationProvider || (exports.AuthenticationProvider = AuthenticationProvider = {}));
/**
* Helper function to validate if a string is a valid authentication provider
*/
const isValidAuthenticationProvider = (provider) => {
return Object.values(AuthenticationProvider).includes(provider);
};
exports.isValidAuthenticationProvider = isValidAuthenticationProvider;