diff --git a/packages/client/lib/MetadataClient.ts b/packages/client/lib/MetadataClient.ts index 75c49b06..98900d65 100644 --- a/packages/client/lib/MetadataClient.ts +++ b/packages/client/lib/MetadataClient.ts @@ -132,7 +132,7 @@ export class MetadataClient { } authorization_endpoint = authMetadata.authorization_endpoint; if (!authMetadata.authorization_challenge_endpoint) { - throw Error(`Authorization Sever ${authorization_challenge_endpoint} did not provide a authorization_challenge_endpoint`); + console.warn(`Authorization Server ${authorization_challenge_endpoint} did not provide a authorization_challenge_endpoint`); } else if (authorization_challenge_endpoint && authMetadata.authorization_challenge_endpoint !== authorization_challenge_endpoint) { throw Error( `Credential issuer has a different authorization_challenge_endpoint (${authorization_challenge_endpoint}) from the Authorization Server (${authMetadata.authorization_challenge_endpoint})`, @@ -140,7 +140,7 @@ export class MetadataClient { } authorization_challenge_endpoint = authMetadata.authorization_challenge_endpoint; if (!authMetadata.token_endpoint) { - throw Error(`Authorization Sever ${authorization_servers} did not provide a token_endpoint`); + throw Error(`Authorization Server ${authorization_servers} did not provide a token_endpoint`); } else if (token_endpoint && authMetadata.token_endpoint !== token_endpoint) { throw Error( `Credential issuer has a different token_endpoint (${token_endpoint}) from the Authorization Server (${authMetadata.token_endpoint})`, diff --git a/packages/client/lib/MetadataClientV1_0_11.ts b/packages/client/lib/MetadataClientV1_0_11.ts index c0aad97b..d91e5d3d 100644 --- a/packages/client/lib/MetadataClientV1_0_11.ts +++ b/packages/client/lib/MetadataClientV1_0_11.ts @@ -107,7 +107,7 @@ export class MetadataClientV1_0_11 { } authorization_endpoint = authMetadata.authorization_endpoint; if (!authMetadata.authorization_challenge_endpoint) { - throw Error(`Authorization Sever ${authorization_challenge_endpoint} did not provide a authorization_challenge_endpoint`); + console.warn(`Authorization Server ${authorization_challenge_endpoint} did not provide a authorization_challenge_endpoint`); } else if (authorization_challenge_endpoint && authMetadata.authorization_challenge_endpoint !== authorization_challenge_endpoint) { throw Error( `Credential issuer has a different authorization_challenge_endpoint (${authorization_challenge_endpoint}) from the Authorization Server (${authMetadata.authorization_challenge_endpoint})`, @@ -115,7 +115,7 @@ export class MetadataClientV1_0_11 { } authorization_challenge_endpoint = authMetadata.authorization_challenge_endpoint; if (!authMetadata.token_endpoint) { - throw Error(`Authorization Sever ${authorization_server} did not provide a token_endpoint`); + throw Error(`Authorization Server ${authorization_server} did not provide a token_endpoint`); } else if (token_endpoint && authMetadata.token_endpoint !== token_endpoint) { throw Error( `Credential issuer has a different token_endpoint (${token_endpoint}) from the Authorization Server (${authMetadata.token_endpoint})`, diff --git a/packages/client/lib/MetadataClientV1_0_13.ts b/packages/client/lib/MetadataClientV1_0_13.ts index 849c572b..f7d5039a 100644 --- a/packages/client/lib/MetadataClientV1_0_13.ts +++ b/packages/client/lib/MetadataClientV1_0_13.ts @@ -106,7 +106,7 @@ export class MetadataClientV1_0_13 { } authorization_endpoint = authMetadata.authorization_endpoint; if (!authMetadata.authorization_challenge_endpoint) { - throw Error(`Authorization Sever ${authorization_challenge_endpoint} did not provide a authorization_challenge_endpoint`); + console.warn(`Authorization Server ${authorization_challenge_endpoint} did not provide a authorization_challenge_endpoint`); } else if (authorization_challenge_endpoint && authMetadata.authorization_challenge_endpoint !== authorization_challenge_endpoint) { throw Error( `Credential issuer has a different authorization_challenge_endpoint (${authorization_challenge_endpoint}) from the Authorization Server (${authMetadata.authorization_challenge_endpoint})`, @@ -114,7 +114,7 @@ export class MetadataClientV1_0_13 { } authorization_challenge_endpoint = authMetadata.authorization_challenge_endpoint; if (!authMetadata.token_endpoint) { - throw Error(`Authorization Sever ${authorization_servers} did not provide a token_endpoint`); + throw Error(`Authorization Server ${authorization_servers} did not provide a token_endpoint`); } else if (token_endpoint && authMetadata.token_endpoint !== token_endpoint) { throw Error( `Credential issuer has a different token_endpoint (${token_endpoint}) from the Authorization Server (${authMetadata.token_endpoint})`,