@hexclave/dashboard-ui-components 1.0.125 → 1.0.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4987,6 +4987,37 @@ ${currentIndent}`);
|
|
|
4987
4987
|
], (json) => [json.provider_id]);
|
|
4988
4988
|
var InvalidAuthorizationCode = createKnownErrorConstructor(KnownError, "INVALID_AUTHORIZATION_CODE", () => [400, "The given authorization code is invalid."], () => []);
|
|
4989
4989
|
var InvalidAppleCredentials = createKnownErrorConstructor(KnownError, "INVALID_APPLE_CREDENTIALS", () => [400, "The Apple Sign In credentials could not be verified. Please try signing in again."], () => []);
|
|
4990
|
+
var externalAuthProviderConfigurationReasons = [
|
|
4991
|
+
"provider_disabled",
|
|
4992
|
+
"required_setting_missing",
|
|
4993
|
+
"invalid_authorized_party",
|
|
4994
|
+
"unknown"
|
|
4995
|
+
];
|
|
4996
|
+
var externalAuthTokenReasons = [
|
|
4997
|
+
"malformed_token",
|
|
4998
|
+
"signature_mismatch",
|
|
4999
|
+
"expired",
|
|
5000
|
+
"issuer_mismatch",
|
|
5001
|
+
"audience_mismatch",
|
|
5002
|
+
"authorized_party_mismatch",
|
|
5003
|
+
"client_id_mismatch",
|
|
5004
|
+
"missing_claim",
|
|
5005
|
+
"unsupported_token_type",
|
|
5006
|
+
"unknown"
|
|
5007
|
+
];
|
|
5008
|
+
function parseExternalAuthReason(value, reasons, fallback) {
|
|
5009
|
+
return typeof value === "string" ? reasons.find((reason) => reason === value) ?? fallback : fallback;
|
|
5010
|
+
}
|
|
5011
|
+
var ExternalAuthProviderNotConfigured = createKnownErrorConstructor(KnownError, "EXTERNAL_AUTH_PROVIDER_NOT_CONFIGURED", (reason) => [
|
|
5012
|
+
400,
|
|
5013
|
+
`The external authentication provider is not configured or enabled for this project (${reason}).`,
|
|
5014
|
+
{ reason }
|
|
5015
|
+
], (json) => [parseExternalAuthReason(json.reason, externalAuthProviderConfigurationReasons, "unknown")]);
|
|
5016
|
+
var InvalidExternalAuthToken = createKnownErrorConstructor(KnownError, "INVALID_EXTERNAL_AUTH_TOKEN", (reason) => [
|
|
5017
|
+
401,
|
|
5018
|
+
`The external authentication token could not be verified (${reason}). Please sign in again.`,
|
|
5019
|
+
{ reason }
|
|
5020
|
+
], (json) => [parseExternalAuthReason(json.reason, externalAuthTokenReasons, "unknown")]);
|
|
4990
5021
|
var OAuthProviderAccessDenied = createKnownErrorConstructor(KnownError, "OAUTH_PROVIDER_ACCESS_DENIED", () => [400, "The OAuth provider denied access to the user."], () => []);
|
|
4991
5022
|
var OAuthProviderTemporarilyUnavailable = createKnownErrorConstructor(KnownError, "OAUTH_PROVIDER_TEMPORARILY_UNAVAILABLE", () => [503, "The OAuth provider is temporarily unavailable. Please try again later."], () => []);
|
|
4992
5023
|
var ContactChannelAlreadyUsedForAuthBySomeoneElse = createKnownErrorConstructor(KnownError, "CONTACT_CHANNEL_ALREADY_USED_FOR_AUTH_BY_SOMEONE_ELSE", (type, contactChannelValue, wouldWorkIfEmailWasVerified = false) => [
|
|
@@ -5265,6 +5296,8 @@ ${currentIndent}`);
|
|
|
5265
5296
|
InvalidStandardOAuthProviderId,
|
|
5266
5297
|
InvalidAuthorizationCode,
|
|
5267
5298
|
InvalidAppleCredentials,
|
|
5299
|
+
ExternalAuthProviderNotConfigured,
|
|
5300
|
+
InvalidExternalAuthToken,
|
|
5268
5301
|
TeamPermissionNotFound,
|
|
5269
5302
|
OAuthProviderAccessDenied,
|
|
5270
5303
|
OAuthProviderTemporarilyUnavailable,
|