Skip to content

Conversation

rakatyal
Copy link
Contributor

@rakatyal rakatyal commented Jan 6, 2023

JIRA: DI-2445
Making Identity required in the AccessToken constructor.

throw new Error("secret is required");
}
options = options || {};
if (!options || !options.identity) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this first !-check needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see. Or simply !options?.identity

@rakatyal rakatyal force-pushed the accesstoken_identity branch from c5960c6 to fc82d45 Compare January 6, 2023 18:18
@rakatyal rakatyal merged commit 43ca35f into 4.0.0-rc Jan 6, 2023
@rakatyal rakatyal deleted the accesstoken_identity branch January 6, 2023 19:41
@rakatyal
Copy link
Contributor Author

rakatyal commented Jan 6, 2023

Fixes #595

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants