-
Notifications
You must be signed in to change notification settings - Fork 2
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
Login reg #7
base: master
Are you sure you want to change the base?
Login reg #7
Conversation
auth.js has logic constants has the flow
<p className="App-intro"> | ||
To get started, edit <code>src/App.js</code> and save to reload. | ||
</p> | ||
<button type="button" className="form-submit" onClick={this.handleLogout}>Logout</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this onClick event triggers the handleLogout
method? you need to bind it .
@@ -0,0 +1,99 @@ | |||
import decode from 'jwt-decode'; | |||
|
|||
export default class AuthService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you have your AuthService
class setup to handle authentication then you should use it for your App
component (handleLogout
)
add the auth and binded the handleLogout |
this commit is to review the login and register page for the app
thing to note :