DEV Community

Discussion on: Full-Stack Authentication and Hosting (Nodejs, Reactjs, Heroku, Netlify)

Collapse
 
masharsamue profile image
Samuel Mashar

Great article. But can you have another one handling redirection after logging in a simpler faster way by that i mean not redux after logging in it takes the user to a different place.

Collapse
 
masharsamue profile image
Samuel Mashar

if you have one already i'd be glad if you shared the link

Collapse
 
ebereplenty profile image
NJOKU SAMSON EBERE

If I get your question correctly, then it is handled in dev.to/ebereplenty/react-authentic....

For example, to redirect to a landing page, you can just do the following:

    // redirect user to the landing page
    window.location.href = "/";
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
ebereplenty profile image
NJOKU SAMSON EBERE

This is the login code. Notice how I redirect to the auth page

github.com/EBEREGIT/react-auth/blo...