Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dedup auth #200

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Dedup auth #200

wants to merge 2 commits into from

Conversation

rap1ds
Copy link
Member

@rap1ds rap1ds commented Jul 3, 2024

No description provided.

If authentication fails, requireAuth returns the return value of
reject() callback, which is `undefined`. However, we use the return
value as a Promise chain and call `.then()` to it. Obviously,
`undefined.then()` should fail. However, that failure is never visible
due to the fact that we are already inside a rejected Promise context,
which will catch the exception and return the original rejection reason.
@rap1ds rap1ds force-pushed the sequential-auth branch from 36d271d to 9f92bb4 Compare July 3, 2024 18:36
@rap1ds rap1ds force-pushed the sequential-auth branch from 9f92bb4 to 25b3c4e Compare July 3, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant