|
}).catch((error: Error) => |
|
this.removeAccessToken().then(() => Promise.reject(error)) |
|
); |
Authentication client removes authentication token on every failed reauthentication. It's not referenced in docs and is problematic when authentication server goes offline.
In my use case, I want to check if user can be authenticated with current token. No matter what the error is, on fail, it's removed - I would like to keep the token and try again later.
feathers/packages/authentication-client/src/core.ts
Lines 136 to 138 in 6d723e8
Authentication client removes authentication token on every failed reauthentication. It's not referenced in docs and is problematic when authentication server goes offline.
In my use case, I want to check if user can be authenticated with current token. No matter what the error is, on fail, it's removed - I would like to keep the token and try again later.