persistent login now works, no more cookie errors

This commit is contained in:
Carter 2024-10-23 12:41:52 -06:00
parent a7b417abdf
commit 47e3939112
5 changed files with 16 additions and 25 deletions

View file

@ -6,7 +6,7 @@ import { Auth0Provider } from '@auth0/auth0-react'
import { or } from '../utils/types'
import AuthWrapper from '../providers/auth'
import HTTPProvider from '../providers/http'
import { useUserAPI } from '../providers/pond/userAPI'
// import { useUserAPI } from '../providers/pond/userAPI'
// import LoginButton from '../providers/LoginButton'
function App() {
@ -26,7 +26,7 @@ function App() {
let client_id = import.meta.env.VITE_AUTH0_BXT_CLIENT_ID;
console.log(url)
console.log(audience)
// console.log(audience)
return (
<Auth0Provider
@ -36,6 +36,8 @@ function App() {
audience: or(audience, ""),
redirect_uri: window.location.origin + "/callback"
}}
useRefreshTokens={true}
cacheLocation='localstorage'
>
<AuthWrapper>
<HTTPProvider>