I get this problem when creating a product from Stripe:
No storage option exists to persist the session, which may result in unexpected behavior when using auth.
If you want to set persistSession to true, please provide a storage option or you may set persistSession to false to disable this warning.
I think this is something to do with getSession:
export async function middleware(req: NextRequest) {
const res = NextResponse.next()
const supabase = createMiddlewareClient<Database>({ req, res })
await supabase.auth.getSession()
return res
}
How can we persist session when auth is changed with Google?
With the latest version,
auth
seems to be a bit of a problem if I usegoogle
for Auth:I get this problem when creating a product from Stripe:
I think this is something to do with getSession:
How can we persist session when auth is changed with Google?
Forgive my naive question