-
Notifications
You must be signed in to change notification settings - Fork 19
Re-authenticating fails when passing options #22
Comments
If you're going to pass options, you need to pass all of the ones required for the strategy you're using. The |
If you don't pass anything (like |
As pointed out, you either call
|
I have the same problem, I try to make an impersonate strategy and I want to be able to authenticate by "jwt" but never working. It seems that the call |
Steps to reproduce
1- Authenticate using the
local
strategy.2- Navigate to another page.
3- The jwt token is obtained successfully and is available when calling
app.passport.getJWT()
, and verifies successfully when callingapp.passport.verifyJWT(token)
.4- Try to re-authenticate, passing
jwt
as the strategy.Expected behavior
The re-authentication should succeed.
Actual behavior
Re-authentication fails.
Calling authenticate() without any options works correctly.
System configuration
Module versions: feathers-authentication-client 0.1.6
NodeJS version: 6.9.4
The text was updated successfully, but these errors were encountered: