Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@daffl
Copy link
Member

@daffl daffl commented Jul 12, 2022

Running reAuthenticate in parallel with other requests that need authentication e.g. like this:

const [authresult, dummies] = await Promise.all([
  app.reAuthenticate(),
  app.service('dummy').find()
])

Did not work though it should work the same as with authenticate which ensures that all requests wait for the current authentication to complete.

@daffl daffl merged commit 41b3761 into dove Jul 13, 2022
@daffl daffl deleted the reauthenticate-parallel branch July 13, 2022 00:21
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.