Member
zoie
Login and authorization code in Javascript
1 2 3 4 5
if (this.state.username === "test") { this.props.auth.login().then(res => { this.props.onLoggedIn(); }); }