The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update code snippets with filename
Andrew Smith3ab93886d9d6
diff --git a/apps/docs/pages/guides/auth/auth-password-reset.mdx b/apps/docs/pages/guides/auth/auth-password-reset.mdxindex 88664550455..9bd052a0345 100644--- a/apps/docs/pages/guides/auth/auth-password-reset.mdx+++ b/apps/docs/pages/guides/auth/auth-password-reset.mdx@@ -49,7 +49,7 @@ redirect the user.```tsawait supabase.auth.resetPasswordForEmail("[email protected]", {- redirectTo: 'http://example.com/auth/callback?next=/account/update-password'+ redirectTo: 'http://example.com/api/auth/callback?next=/account/update-password'})```@@ -66,6 +66,8 @@ The email link you receive will behave like a magic link. When the link is click### Exchange authorization codeAfter getting redirected to the server page we need to retrieve the code from the query parameter called `code` and pass it to the `.exchangeAuthCodeForSession` function.```ts+// api/auth/callback.ts+// code can be retrieved using your framework of choice way of getting query parameter from the url.// This is just example codeconst code = url.searchParams.get('code')@@ -82,6 +84,8 @@ The query parameter is always `code` for the authorization code returned from thWe will also need to check for the `next` query parameter to redirect the user to the update password page.```ts+// api/auth/callback.ts+// password page path can be retrieved using your framework of choice way of getting query parameter from the url.// This is just example codeconst next = url.searchParams.get('next')