Update apps/reference/_supabase_js/upgrade-guide.mdx

This commit is contained in:
Thor 雷神 Schaeff authored and GitHub committed 2022-11-04 00:42:15 +08:00
1 parent 98c43ab62f
commit cd326ee70e
1 file changed
+1 -1
@@ -304,7 +304,7 @@ const supabase = createClient(SUPABASE_URL, SUPABASE_ANON_KEY, {
The cookie related methods like `setAuthCookie` and `getUserByCookie` have been removed.
For Next.js you can use the [Auth Helpers](https://supabase.com/docs/guides/auth/auth-helpers/nextjs) to help you manage cookies.
If you prefer not to use the auth helpers package you can follow [this approach](https://supabase.com/docs/guides/auth/server-side-rendering) for server-side-rendering.
If you can't use the Auth Helpers, you can follow [this approach](https://supabase.com/docs/guides/auth/server-side-rendering) for server-side-rendering.
Some more background information about the reasoning can be obtained [here](https://github.com/supabase/gotrue-js/pull/340).