GithubHelp home page GithubHelp logo

Comments (6)

choonkending avatar choonkending commented on May 3, 2024

@sijo-vijayan Thanks for commenting!

I need a bit more context on the error you are getting, i.e.

  1. What are the error messages you are getting?
  2. How are you running it? (Locally?)
  3. Can you list down the steps to reproduce this error?

from reactgo.

sijo-vijayan avatar sijo-vijayan commented on May 3, 2024

@choonkending No errors, But i need to get the session variables such as user id, e-mail, name etc from the passport.js session. I have tried the "req.user" property to get this data , but no use. I have tried the changes in code as given in this
url http://passportjs.org/docs/#middleware

I just want a login protected page
I hope you understand what i'm talking about.

Thanks

from reactgo.

choonkending avatar choonkending commented on May 3, 2024

@sijo-vijayan I don't think we have login protected pages within this boilerplate currently but we are planning on adding that in, created an issue for that #47.

You should be able to access req.user like how we do so https://github.com/choonkending/react-webpack-node/blob/master/server/config/routes.js#L62.

from reactgo.

choonkending avatar choonkending commented on May 3, 2024

@sijo-vijayan I think I'm encountering the same problem as you. I'll look into this now and see what's causing the issue. Thanks for raising this!

from reactgo.

choonkending avatar choonkending commented on May 3, 2024

46f7cb0

should probably give you access to req.user now.

from reactgo.

sijo-vijayan avatar sijo-vijayan commented on May 3, 2024

Wow !!!, Now it is working properly.
Thanks you @choonkending

from reactgo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.