Skip to content

Commit

Permalink
DougMidgley#197 Removed the grant_type null check
Browse files Browse the repository at this point in the history
  • Loading branch information
BF\fazalur.habibur committed Sep 18, 2023
1 parent b134c14 commit 712b1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default class Auth {
constructor(authObject, options, grant_type = GRANT_TYPE_CLIENT_CREDENTIALS) {
if (!authObject) {
throw new Error('authObject are required. see readme.');
} else if (grant_type && grant_type == GRANT_TYPE_AUTHORIZATION_CODE) {
} else if (grant_type == GRANT_TYPE_AUTHORIZATION_CODE) {
if (!authObject.access_token) {
throw new Error(
'authObject with access_token is required if grant_type => authorization_code',
Expand Down

0 comments on commit 712b1c1

Please sign in to comment.