Skip to content

fix(authentication-client): Do not cache authentication errors#2892

Merged
daffl merged 1 commit intodovefrom
auth-client-error-fix
Nov 24, 2022
Merged

fix(authentication-client): Do not cache authentication errors#2892
daffl merged 1 commit intodovefrom
auth-client-error-fix

Conversation

@daffl
Copy link
Member

@daffl daffl commented Nov 24, 2022

The problem was that anything other than NotAuthenticated errors did not reset the authentication promise so all subsequent requests would get the cached error and never get sent to the server.

Closes #1947
Closes #1787

@netlify
Copy link

netlify bot commented Nov 24, 2022

Deploy Preview for feathers-dove canceled.

Name Link
🔨 Latest commit 194ea8c
🔍 Latest deploy log https://app.netlify.com/sites/feathers-dove/deploys/637fe205e15cc200084db1b3

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.

Authentication Client caching BadRequest responses from create Feathers auth client does not treat non-401 failures as failures

1 participant