-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Successful Login but its not Redirecting #16
Comments
As I suggested in the issue #13, please check how you've spelt the |
Thanks, I'll check it out.
…On Thu, Jul 2, 2020 at 12:05 AM Carlos Piña Martinez < ***@***.***> wrote:
As I suggested in the issue #13
<#13>,
please check how you've spelt the auth.isAuthenticated variable inside
the PrivateRoute.js. Ensure that all the React code use the same naming.
Otherwise, it will happen that, a constant back and forth between / and
/login paths.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANB2VIKHTQRW57Q73TLLBHDRZNNEBANCNFSM4JABKB2A>
.
|
I am not being redirected after successfully logging in. It doesn't seem like the following code is actually rendering again once the user has logged in: if (this.props.isAuthenticated) { I have console logged it and this bit of code doesn't actually get called after the user has logged in. Is anyone else having this issue? |
Hi, I'm already at the part 7 of the video tutorial, and I was able to Login but it's not redirecting to the dashboard.
import React, { Component } from 'react';
import { Link, Redirect } from "react-router-dom";
import { connect } from "react-redux";
import PropTypes from "prop-types";
import { login } from "../../actions/auth";
export class Login extends Component {
state = {
username:"",
password:""
};
}
const mapStateToProps = state => ({
isAutheticated: state.auth.isAutheticated
});
export default connect(mapStateToProps, { login })(Login);
The text was updated successfully, but these errors were encountered: