Skip to content

Commit

Permalink
feat: improve error message when client is determined to be invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonraimondi committed Aug 9, 2024
1 parent ed9e23e commit a25682f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grants/abstract/abstract.grant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export abstract class AbstractGrant implements GrantInterface {
const userValidationSuccess = await this.clientRepository.isClientValid(grantType, client, clientSecret);

if (!userValidationSuccess) {
throw OAuthException.invalidClient();
throw OAuthException.invalidClient("Client has been revoked or is invalid.");
}

return client;
Expand Down

0 comments on commit a25682f

Please sign in to comment.