Questions tagged [feathers-authentication]
66 questions
6
votes
1 answer
is it possible to create Feathersjs Oauth with apple sign in?
I am trying to integrate my React Native Ios project with feathers js. If my apps has any social login, it is required to have Apple Sign In method to be included to the project in order to publish to the store.

co2nut
- 61
- 1
- 3
4
votes
1 answer
What is the correct way to add a Custom Authentication strategy to a Feathers application?
My Feathers application needs to be able to have two JWT authentication strategies. For the users service, I need to have, for example, all: [authenticate('carrier')] instead of all: [authenticate('jwt')] in my hooks. For the rest of the services,…

Kashif Nazar
- 20,775
- 5
- 29
- 46
4
votes
1 answer
FeathersJs authenticate returning NotAuthenticated: Invalid login
I am following the official guide of feathers js authenticate https://docs.feathersjs.com/guides/chat/authentication.html but it seems like even after following the guide step by step I am unable to generate tokens. Here is the body of my request to…

Assad Ullah
- 785
- 6
- 12
3
votes
0 answers
how to send token jwt to verify before response with NodeJs using feathersjs?
I'm doing administration dashboard with use a token jwt. I would like to the user can obtain access to the middleware only if logged. I want to do that if he is logged, the server is shows home page if not, then he is redirect to login page. Below…

SeaDog
- 645
- 1
- 9
- 32
2
votes
0 answers
@feathersjs Server Multiple JWT Authentication Services Not Allowed?
I'm looking for an answer to best practices for this solution. I have an IOT project im working on that requires authentication on two paths. User and device.
What I am attempting to do is have full control over route authentication separately on…

Noah Wallace
- 118
- 7
2
votes
0 answers
unable to authenticate using feathers authentication
I created feathers js app and then added authentication using feather generate authentication
authentication.js
const authentication = require('@feathersjs/authentication');
const jwt = require('@feathersjs/authentication-jwt');
const local =…

Asad Abbas
- 160
- 12
2
votes
1 answer
Need to add more than usernameField in feathersjs
I'm new to feathersjs I'm building a backend server using it, and need to add 2 ways of local authentication, by email, or mobile
I've already added new local to the config/default.json as the following
"local-mobile": {
"usernameField":…

Marwan Ze
- 69
- 5
2
votes
1 answer
How to reset isVerified email verification feathers js
I have a feathers.js app the also uses vue for the frontend. Also using feather-authentication-management. Using mongodb that creates the isVerified and sets it to false. Trying to find out correct way to change isVerified to true when the user…

Byron Coughlin
- 101
- 9
2
votes
0 answers
Two way SSL for FeathersJS using Socket.IO with custom authentication
I'm trying to get a FeatherJS app up and running using two way ssl for authentication over Socket.IO. I've built a simple cert strategy, verifier, etc.. to handle the task of validating that the user presented is a valid user.
However -- at this…

Flesrouy
- 684
- 3
- 10
2
votes
2 answers
How can I set the `sub` claim of a JWT in FeathersJS?
The sub claim for JWTs is optional, but the feathersjs-authentication won't let me set it to a blank string or remove it.
I was able to add a new value to the payload in the authentication before hook but changing sub or trying to remove it doesn't…

SomethingOn
- 9,813
- 17
- 68
- 107
1
vote
1 answer
Feathers authentication.create throws 401 not authenticated error
// code
app.use('/login', {
async create(data, params) {
data.strategy = 'local';
return authentication.create(data, params);
}
});
// config
"local": {
"usernameField": "username",
"passwordField": "password"
}
I am using…

Alfred Ignatius
- 53
- 5
1
vote
0 answers
Feathers.js authentication service uses global entity and service variables when constructing the JWT instead of local entity
I am using feathers.js for my app. In my app, I use different strategies. For all those strategies the entity is user. But I also want to use local strategy for internal operators. The global entity is set to user but for local strategy which I…

buterfly85
- 163
- 3
- 11
1
vote
1 answer
FeathersJs - Sanitize response from Find method in users service broke Authentication service
I created an after hook in the users service that should sanitize the response from the "find" method and it broke the authentication service.
The after hook sanitizeResponse should verify if the query is regarding the email or cpf, and, if it is,…

Rodrigo Ramalho
- 35
- 4
1
vote
0 answers
How to add a users auth in feathers middleware?
I use feathersjs framework in my projekt. In older version my middleware it was work but afer update a framework and after created new app with authenticate a middleware not working.
My index.js file show like below:
const cookieParser =…

SeaDog
- 645
- 1
- 9
- 32
1
vote
1 answer
How to set idField in feathersVuex auth service
I have an issue that I couldn't resolve for a quite long time.
I'm making a shop using feathersJS as a backend api and Vue.js on the front and Mongodb. As I try to authenticate user on website, everything goes smoothly until "setUser" action fires…

hubik j hubik080
- 13
- 3