Commit Graph
22 Commits
Author SHA1 Message Date
Terry SuttonandCharis Lam bb0306061d Chore/update to next 15 (#30075)
* Update Next.js docs for v15

* More awaiting

* remove async for pages router

* fix for dashboard connection guide

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2024-10-24 12:56:20 -02:30
Charis 33be4b8061 fix(docs): email template instructions for pkce (#29089) 2024-09-04 14:21:21 -04:00
Peter cb56a69a00 fix: Replace deprecated serialize call in NextJS pages router docs (#28561)
* Replace deprecated Serialize call

* run prettier
2024-08-13 00:09:57 +00:00
Evan Suhyeong Lee db713f43b1 fix(docs): delete unused type from example code (#28268) 2024-07-31 01:28:04 +00:00
Jonathan Hutchison 5830366213 Update supabase/ssr Pages router snippets (#27904) 2024-07-10 17:14:58 +00:00
Charis f4779d4844 refactor: migrate guides to app router (#23101)
Migrate guides to App Router.
2024-07-03 10:25:06 -04:00
Charis 484393f666 fix: catch errors on setall in rscs (#27762) 2024-07-03 08:56:56 +02:00
Erik Petersen 862f6075fb docs: fix Next.js create client docs to match fix in ssr auth docs (#27659)
* docs: fix nextjs create client docs to match fix in ssr auth docs

* Fix bug by also making the auth route public
2024-07-01 21:35:49 +00:00
Richárd HrubyandCharis Lam 9697715825 update code snippet in nextjs server-side auth guide step 7 (#26281)
* update code snippet in nextjs server-side auth guide step 7

* format

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2024-07-01 19:23:11 +00:00
Erik Petersen 9a18d013c2 Fix nextjs example in ssr docs (#27622)
* docs: fix NextJS middleware code in SSR docs

* Fix redirect loop that example would create

* Fix formatting
2024-06-28 18:39:15 -04:00
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
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
Kang Ming 0267abdb2a docs: fix typos in page router guide (#22398) 2024-04-03 00:34:17 +08: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
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