Thor 雷神 Schaeff
Thor 雷神 Schaeff
This can likely be tackled together with https://github.com/supabase/auth-helpers/issues/96
As it stands today, you will need to set the redirect URL to be a client-side route, e.g. your sign-in page, and then have a hook that monitors the user...
Can you upgrade to the latest version and see if that resolves it?
As it stands today, you will need to set the redirect URL to be a client-side route, e.g. your sign-in page, and then have a hook that monitors the user...
The library exports an `/api/auth/logout` route for logout: https://github.com/supabase-community/auth-helpers/tree/main/packages/nextjs#basic-setup But yes, needs to be better documented. Usage is like this: https://github.com/supabase-community/auth-helpers/blob/main/examples/nextjs/pages/_app.tsx#L10 ```tsx Logout ```
@mikemajara see the docs: https://github.com/supabase/auth-helpers/blob/main/packages/nextjs/README.md#basic-setup ```js // pages/_app.js import React from 'react'; import { UserProvider } from '@supabase/auth-helpers-react'; import { supabaseClient } from '@supabase/auth-helpers-nextjs'; export default function App({ Component, pageProps...
Actually, should add the last two centrally in https://github.com/supabase-community/.github
The next release should make this more robust. You can already try it out with installing `npm install @supabase/auth-helpers-nextjs@next` and you can find the migration guide here: https://github.com/supabase/auth-helpers/blob/next/packages/nextjs/MIGRATION_GUIDE.md#migrating-to-03x
At the point the route is called, the session should exist, as it is only called upon the `SIGNED_IN` event being fired. Can you send a screenshot of the network...
Yep, that looks all good. Not sure why for @ColinEspinas the request would send `null` for the session. @ColinEspinas can you provide some screenshots of the network tab with the...