Skip to content

Instantly share code, notes, and snippets.

@aaishikasb
Created January 13, 2022 07:00
Show Gist options
  • Save aaishikasb/9a3bf54776b2c09a4f103f87f469228c to your computer and use it in GitHub Desktop.
Save aaishikasb/9a3bf54776b2c09a4f103f87f469228c to your computer and use it in GitHub Desktop.
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