Code Monkey home page Code Monkey logo

Comments (4)

gpbl avatar gpbl commented on July 17, 2024

Yup, if you need to keep the authentication when refreshing the page (or when the user comes back), you want to save the authentication token somewhere, usually in a cookie.

In your express app, after the login, save the cookie with the token. Your next GETs to /login should check req.cookies to verify the token against your authentication system.

from isomorphic500.

ssmlee04 avatar ssmlee04 commented on July 17, 2024

ok I see this info in req.cookies. I'll try to pass into into all future request I guess that's it thanks!
btw.... how do I extract email / password from the forms and pass them into actions? I am currently using jquery but this seems weird..

from isomorphic500.

gpbl avatar gpbl commented on July 17, 2024

@ssmlee04 if you don't mind, there's a gitter chat for this repo: https://gitter.im/gpbl/isomorphic500
that is a better place to talk with other developers and ask questions :)

from isomorphic500.

ssmlee04 avatar ssmlee04 commented on July 17, 2024

yes that's a great idea. I'll go over there an take a look. Thanks a lot for your info and help!

from isomorphic500.

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.