-
Notifications
You must be signed in to change notification settings - Fork 10
Cannot authenticate using feathers token #43
Comments
i tried downgrading |
Probably a regression due to feathersjs-ecosystem/authentication#539 Are you overriding the |
i was not. it might be due to jsonwebtoken update, but i'm not sure. https://github.com/auth0/node-jsonwebtoken/blob/master/CHANGELOG.md |
I have the same issue but it occurs both in development and production. |
Can someone please share a reproducible example? |
I can try to set one up. Shouldn't take long. Just make a service that creates a JWT with createJWT. |
What are you calling |
I have a service that issues JWTs to clients that call it with an API key. Reason for this is that the clients aren't real "clients", but other servers. |
@FreeLineTM why don't you use a custom auth module using passport-custom for api key authentication. I use it to completely circumvent creating JWTs. I've added it to the docs here feathersjs-ecosystem/docs#885 @daffl could you please review and merge it? I think there has been some conflict introduced since I last put it up. |
@subodhpareek18 I didn't know how to do that and the solution I'm using was a suggestion from someone else. Didn't have any better ideas myself. Will take a look at your PR and try that out though. |
I'm having the same problem I was running feathers-authentication 1.2.7 on my server and everything was fine. I upgraded today and I get the same error now. My client is using feathers-authentication 1.3.0 with no issues before the update so it's something that was introduced between 1.2.7 and 1.3.0. |
I have a fix in feathersjs-ecosystem/authentication#600 which should be released shortly. |
Closed via feathersjs-ecosystem/authentication#600 |
thanks @daffl! 💯 |
It now works for me. Thank you so much for the quick turn around! |
app runs smoothly on my local but after deploying my app to server, calling
feathersApp.authenticate()
returns error:The text was updated successfully, but these errors were encountered: