Merge pull request #2708 from Infisical/misc/oidc-setup-extra-handling

misc: added OIDC error and edge-case handling
This commit is contained in:
Maidul Islam
2024-11-18 10:56:09 -05:00
committed by GitHub
6 changed files with 86 additions and 15 deletions
+12
View File
@@ -133,3 +133,15 @@ export class ScimRequestError extends Error {
this.status = status;
}
}
export class OidcAuthError extends Error {
name: string;
error: unknown;
constructor({ name, error, message }: { message?: string; name?: string; error?: unknown }) {
super(message || "Something went wrong");
this.name = name || "OidcAuthError";
this.error = error;
}
}