Created
January 13, 2022 07:00
-
-
Save aaishikasb/9a3bf54776b2c09a4f103f87f469228c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import {withRouter} from 'react-router-dom'; | |
import auth0Client from './Auth'; | |
class Callback extends Component { | |
async componentDidMount() { | |
await auth0Client.handleAuthentication(); | |
this.props.history.replace('/'); | |
} | |
render() { | |
return ( | |
<p>Authentication with Auth0 works!</p> | |
); | |
} | |
} | |
export default withRouter(Callback); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment