Questions tagged as 'passport-js'

1
answer

Passport Session Authentication on Android

I have a web app running with NodeJS, Express and authentication with Passport-JS, and everything works perfectly. Now I'm developing an Android app and I need to authenticate my users using the same API. From what I understand by reading...
asked by 14.12.2016 / 13:05
1
answer

How to use passport.js on node to log in against the database

How to use passport.js to control access using the database and express.js middleware. How to make login logic and how to know that the session is already authorized when the user has already logged in?     
asked by 12.09.2015 / 22:56
1
answer

Empty input after submitting form

Hello, I'm developing a login system, but I'd like to improve something. When I register a user, and type their name, address, etc., and make the request of the form, it returns all the empty inputs. Like the GIF below ... Notice in the ab...
asked by 10.10.2018 / 00:11
1
answer

TypeError: ExtractJwt.fromAuthHeader is not a function

I'm having some problems with Passaport.js. When I try to run my api, the terminal returns an error. I went in the file in question and did not find anything wrong. I searched the net, but the solutions I found left the code to what I have...
asked by 17.08.2017 / 19:34
0
answers

JWT and Passport returns 401 React

Good afternoon. I am learning JWT and Passport and am experiencing problems with the same, the problem is this, I can login and save in LocalStorage, and redirect to another page however, even entering the correct data I get a 401 (Unautho...
asked by 29.08.2018 / 20:43
1
answer

Redirect passport giving error with express 4

I'm having problems after user authentication in form. The passport redirects to the root again, however it does not pass to the GET of the '/' route expression and displays [object Object]. If you use servidor.use(function(err, req, res, n...
asked by 10.10.2017 / 17:13
2
answers

Auth rules with NodeJS + Passport + MongoDB [closed]

Let's doubt it. I am using a blog as an example. I have the Administrator. It makes a full CRUD inside the system. In addition to it I have the Editor and Reviewer. The Editor creates blog posts, but does not publish. And the Reviewer, sees and...
asked by 18.11.2016 / 17:26
0
answers

NodeJS, PassportJS, or JWT Authentication in Google Cloud Functions

Hello, I would like to know if it is possible to do an authentication system using nodejs with passportjs or JWT integrated with Google Cloud Functions, I want to know exactly if doing authentication in GCF do not have to authenticate every time...
asked by 21.03.2018 / 17:19
0
answers

Error passport-http-bearer, can not read property 'realm' of undefined

I'm doing a login system, however it's giving an error inside the passport-http-bearer module. Cannot read property 'realm' of undefined this._realm = options.realm || 'Users'; Project in Node.Js     
asked by 30.01.2018 / 20:45
1
answer

Passport-local / I do not understand the structure of the function

I'm trying to implement the authentication system on my platform using Passport, passport-local and passport-local-mongoose. I was able to apply login authentication: app.post("/login", passport.authenticate("local", { successRedirect:...
asked by 02.10.2017 / 03:20