-
Notifications
You must be signed in to change notification settings - Fork 111
Open
Description
This is a little weird, my gatsby app for some reason logs out a few seconds after refresh. A normal username-password-authentication connection works fine. The following is the state a second after the refresh:
authResult: null,
error: {
code: "login_required",
description: "Login required"
error: "login_required"
error_description: "Login required",
original: {
error: "login_required",
error_description: "Login required
}
},
errorType: "checkSession",
expiresAt: null,
isAuthenticating: false,
user: {}
auth0_callback
import React, { useEffect } from "react"
import { useAuth } from "react-use-auth"
import Layout from "../components/layout"
const AuthCallback = () => {
const { handleAuthentication } = useAuth()
useEffect(() => {
handleAuthentication({ postLoginRoute: "/" })
}, [])
return <Layout>Redirecting to home...</Layout>
}
export default AuthCallback
Metadata
Metadata
Assignees
Labels
No labels