Commit Graph
23 Commits
Author SHA1 Message Date
Stojan Dimitrovski 3a0a092295 docs: fix getServerSideProps ssr guide (#27502) 2024-06-24 13:47:29 -04:00
Stojan Dimitrovski ca48672711 docs: rewrite ssr examples to use getAll, setAll (#27242) 2024-06-24 18:58:17 +02:00
Charis 4c9c96a159 fix(sveltekit ssr docs): createBrowserClient use (#26872)
In the abbreviated SvelteKit SSR instructions, `createBrowserClient` is
used in hybrid code that runs on both the server and client, with
changes in the configuration depending on where it's run. That's just
confusing, because the name implies it should not run on the server.

Change it to match the full SvelteKit SSR tutorial, which selectively
runs `createBrowserClient` or `createServerClient` depending on the
current environment.
2024-05-31 11:43:29 -04:00
ec86bbc4fe feat: new auth ia (#22812)
Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
Co-authored-by: Joel Lee <lee.yi.jie.joel@gmail.com>
2024-05-07 20:15:06 +00:00
Charis 0d1f8b8627 fix: sveltekit examples pass headers through (#23448)
The `x-supabase-api-version` header was added to Supabase APIs, so it
needs to be passed through in SvelteKit examples.
2024-05-02 11:28:43 -04:00
Charis 0c8f9942cf feat(understandability): add new server-side auth docs for sveltekit (#22574)
End-to-end guide for setting up Server-Side Auth with SvelteKit, covering:

- Protected routes
- Signin, signup, signout
- Protected data
2024-04-22 18:26:27 +00:00
Jan SzymańskiandCharis 261501b074 [DOCS] OAuth PKCE Flow - fix incorrect relative path for redirectTo (#22694)
Update oauth-with-pkce-flow-for-ssr.mdx

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-04-15 17:22:26 +00:00
abhishekmgandCharis b2fd97c36f doc update : Updated the redirect path if user is not found (#22531)
Updated the redirect path if user is not found

Because the redirect path was `/` when I logged out and then went to something like `localhost:3000/` , this cause an infinite redirect loop and caused the app to break.

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-04-09 14:09:39 +00:00
Thibault Dalban 0c457bb1e3 Fix sveltekit hooks.server.ts example (#22436)
The `supabase` variable doesn't exist in this context, but an instance is accessible through the `event.locals`.
2024-04-03 14:24:08 +00:00
Charis a1060c86de fix: better handling of getSession for sveltekit (#22381) 2024-04-03 07:18:46 -04:00
Kang Ming 0267abdb2a docs: fix typos in page router guide (#22398) 2024-04-03 00:34:17 +08:00
Joel Lee 1e583bf172 docs: remove reference to SSO from OAuth docs (#22358)
fix: update terminology
2024-04-02 01:50:32 +08:00
Kellen MaceandCharis 38939fbc79 Docs: Fix TypeScript Error on "Email Auth with PKCE flow for SSR" page (#22204)
Fix TypeScript Error

Set types properly in SvelteKit example to resolve a TypeScript error.

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-03-25 13:47:52 +00:00
DavidandCharis Lam f95b35bf2a Added info about signInWithOauth redirect (#22088)
Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2024-03-19 08:27:25 +00:00
Onur Usluca 305106e911 Remove duplicate import: nextjs.mdx (#21786) 2024-03-05 17:50:29 +00:00
Ryan HallidayandCharis c7650b100e Update next.js setup docs email template (#21466)
* Update next.js setup docs email template

The email templates need to have the type parameter. 

The wording here is a bit clumsy but it's hard to convey succinctly. A variable for the email type would be kinda cool. 

I was getting 401 `AuthApiError: Email link is invalid or has expired` until I changed this for my `magiclink`

* Update apps/docs/content/guides/auth/server-side/nextjs.mdx

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-03-05 06:33:22 +00:00
LeoandCharis 4d829bfb93 Add missing import to nextjs.mdx (#21527)
* Add missing import to nextjs.mdx

* Update apps/docs/content/guides/auth/server-side/nextjs.mdx

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-03-05 06:27:20 +00:00
Menushka WeeratungaandCharis 4f7874edfe docs: Add missing import (#21767)
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-03-05 06:04:26 +00:00
Charis 9c322b7f58 kaizen improvements to nextjs server auth guide (#21305) 2024-02-21 22:40:51 +00:00
200740b016 docs: fix incorrect .js extension with .ts extension (#19925)
* docs: fix incorrect .js extension with .ts extension

Within the SvelteKit example, the guide incorrectly references creating a .js file as opposed to a .ts as is required, given the contents of said file has Typescript within it

* Update apps/docs/pages/guides/auth/server-side/email-based-auth-with-pkce-flow-for-ssr.mdx

* run formatter

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
Co-authored-by: dshukertjr <dshukertjr@gmail.com>
2024-02-20 23:44:35 +00:00
Kang Ming dac1c3e6da docs: add information about default cookie name used (#21298) 2024-02-16 01:47:29 +08:00
Jon Meyers 62720c4e35 Chore: Improve Next.js Auth guide (#21104)
* revert name of token route to auth/confirm/

* add images to middleware matcher
2024-02-08 14:55:30 +11:00
Charis e20038e2f2 refactor: move auth guides into content directory (#20777)
Begin the process of moving our MDX files into their own content directory.

Fixed a few minor bugs re: ToC and tabs not rerendering consistently on page navigation. (The ToC thing wasn't a problem before the refactor, the tabs thing is a problem on prod.)

Moved MDX files can't import their own components, so everything they require needs to be back in the component prop for mdx-remote's serializer. Cleaned this up a bit and lazy-loaded heavy/rare stuff. Also, the component prop doesn't take arbitrary objects (only actual components), so imported data has to be wrapped in a component.
2024-02-07 17:25:08 +00:00