I want to periodically check the user session. I’m using Gatsby, my implementation basically do a silent auth when the gatsby-browser.js mounts.
I want to periodically check the user session.
I’m using auth0-js 9.14.0.
handleCheckSession = () => {
this.setState({ loading: false })
}
componentDidMount() {
silentAuth(this.handleCheckSession)
}