GithubHelp home page GithubHelp logo

trujic1000 / mern-auth-bolierplate Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 7.0 1.36 MB

MERN App Boilerplate with authentication (Node.js/Express/MongoDB/React)

HTML 2.43% JavaScript 96.50% CSS 1.07%

mern-auth-bolierplate's People

Contributors

trujic100 avatar trujic1000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mern-auth-bolierplate's Issues

After login user.name is undfined

First of all thank you so much for this repo you literally saved me after days of long searching for a working project!!.
You should change mongo URI it is your personal URI.
After login user is undefined but after refreshing it works just fine, I found it in after login directly user is in object user.
It is like this user.user.name to work directly after login.

Frontend issue

When you login/register, it's throwing error in auth.

Problems with isAuthenticated

When I created a new private route page and navigate to it from the dashboard it makes me redirect to login then redirect again to the dashboard, isAuth always initialized false than true even when the user is authenticated. I mean it must go back to login to know the user is authenticated also /current must be redirected to login and then dashboard to work.
An unauthenticated user can navigate private routes.

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.