Commit Graph
250 Commits
Author SHA1 Message Date
Charis e2fecc0f5d chore(docs linter): bump version (#36715)
* chore(docs linter): bump version

* style: format
2025-07-03 14:46:29 +00:00
Chris StocktonandChris Stockton 8a4bca34a7 feat: add documentation and UI integration for Before User Created hook (#36567)
* feat: add documentation and UI integration for Before User Created hook

- Added new guide: `before-user-created-hook.mdx`, documenting usage, inputs,
  outputs, and multiple complete examples for HTTP and SQL.
- Updated navigation menu and hook index table to include the new hook.
- Hook is now listed as available on Free and Pro plans.

Studio changes:
- Registered `Before User Created` hook in `hooks.constants.ts` with proper
  title, slug, and configuration keys.
- Enabled Docs button linking to hook guide in both `CreateHookSheet` and `HookCard` components.
- Extended hook listing page to support docs access via `secondaryActions`.

This hook allows developers to intercept and reject user creation across all
flows (email/password, OAuth, SSO, SAML, anonymous) - enabling custom signup
logic like domain allowlists, geofencing, or account gating.

* fix: add subnet to mdx lint allowed list

* fix: incorporate feedback and spelling changes

* feat: add allow/deny domain and CIDR examples to before-user-created hook

This commit enhances the documentation for the before-user-created auth hook:
- Adds production-ready SQL examples for blocking or allowing signups by email domain (signup_email_domains) and IP address or CIDR (signup_networks)
- Introduces enum-based classification (allow vs deny) for both domain and network restrictions
- Adds full migration-style snippets for easy copy/paste into Supabase SQL Editor
- Includes updated HTTP examples that delegate to Postgres functions via Supabase client rpc()
- Adds environment setup guidance and edge function scaffolding

* fix: pnpm format

---------

Co-authored-by: Chris Stockton <chris.stockton@supabase.io>
2025-07-02 14:54:07 -07:00
skelbon 1e983eb6cf docs(auth) - typo correction (#36701)
Fix wording inconsistency between countries and colors example
2025-06-26 16:26:56 +00:00
Charis a62ae515b1 docs: add instructions for using management api as alternative to dashboard ui (#36676) 2025-06-26 09:10:10 -04:00
Vangmay SachanandCharis d2b9eee9e9 Wrote docs for JWT Field (#36578)
* Wrote docs

* Update apps/docs/content/guides/auth/jwt-fields.mdx

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-06-25 16:30:05 +00:00
4b8d5f5502 docs: add workos tpa docs (#36662)
* docs: add workos to 3rd party auth docs

* Commit @charislam's suggestions

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* more explanation of the user_role claim

* drop CLI instructions for now

* add WorkOS to nav menu

* fix typo

* use issuer not client id

* fix prettier

---------

Co-authored-by: Cameron Matheson <cameron@workos.com>
Co-authored-by: Cameron Matheson <cameron.matheson@gmail.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-06-25 17:15:51 +02:00
Cemal Kılıç aa1d904f4d feat: list allowed symbols for password security (#36470)
* feat: list allowed symbols for password security

* fix: formatting
2025-06-18 11:57:50 +02:00
Chandrajeet MauryaandCharis Lam 985733f523 Update auth-apple.mdx (#36389)
* Update auth-apple.mdx

Add notes on to add all custom identifier for expo development build

* fix lint error

---------

Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
2025-06-16 16:12:54 +00:00
Stojan Dimitrovski 73e6f97c65 docs: add web3 cli instructions (#36188) 2025-06-05 09:24:19 +00:00
hallidayo 14fd307392 fix: auth docs - removed example line (#36078)
removed example line
2025-06-02 16:21:42 +00:00
Cemal Kılıç f6b316e1cf chore(docs): update required claims for access token (#36021)
docs: update required claims for access token
2025-05-29 15:35:15 +02:00
CharisandTerry Sutton 37d92e81c3 refactor(docs): turn auth error codes table into data file (#35857)
* refactor(docs): turn auth error codes table into data file

Take the Markdown error codes table and turn it into a data file
instead. This makes it easy to parse and reuse in other places besides
Markdown documents.

* Update apps/docs/content/errorCodes/authErrorCodes.toml

Co-authored-by: Terry Sutton <saltcod@gmail.com>

---------

Co-authored-by: Terry Sutton <saltcod@gmail.com>
2025-05-27 14:10:40 +00:00
654484408a docs: add web3 docs (#35650)
* docs: add web3 docs

* docs: prettifier for auth-web3

* apply suggestion from @cemalkilic

Co-authored-by: Cemal Kılıç <cemalkilic@users.noreply.github.com>

* apply suggestion from @charislam

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>

* more docs updates

* more fixes

---------

Co-authored-by: Cemal Kilic <cemalkilic96@gmail.com>
Co-authored-by: Cemal Kılıç <cemalkilic@users.noreply.github.com>
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-05-23 10:28:59 +02:00
Stephen Morgan 9fa1b66826 Fix: slack integration and sample code (#35862)
* fix:issue with slack integration

* fix: open redirect in sample code
2025-05-23 16:30:36 +12:00
Charis 6fcb98d927 docs(pg17): add docs on pg17 upgrades (#35431) 2025-05-22 14:07:06 -04:00
Charis 109ad11b66 docs(auth): mention that leaked password protection only on paid plans (#35725) 2025-05-20 11:44:04 -04:00
Pierre Vieira df9f581eee Fix: update extension name for Google login in auth-google.mdx (#35704) 2025-05-16 19:56:42 +00:00
Stojan Dimitrovski 554290b44c docs: mention processLock when using react native (#35076) 2025-05-16 20:00:30 +02:00
Pierre Vieira 8e43416557 Update auth-google.mdx to reflect the new Auth object (#35681) 2025-05-15 15:41:41 +00:00
Gajendra Singh Rathore 29bc60602a Update auth-apple.mdx (#35657)
Config name correction based on "AppleLoginConfig"
2025-05-14 12:52:42 +00:00
Andrew Smith 6806ff5755 fix(docs): update callback url to use token_hash instead of token (#35643) 2025-05-13 14:07:49 +00:00
hallidayo 07a8d234cb feat: deprecated auth ui admonition (#35610)
ui link in admonition
2025-05-12 00:39:42 +00:00
NikolajandCharis 33eb11c052 Added <$CodeTabs> to Pages Router tab (#35612)
* Added <$CodeTabs> to Pages Router tab

There was an inconsistency between the App Router and Pages Router page, which was only a small detail.

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

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-05-12 00:29:23 +00:00
Charis 02aea98053 docs(third-party auth,clerk): correct examples (#35412)
Correct the code examples for the Clerk third-party auth docs:
- Fix TypeScript error
- Change RLS policy check to accept both [Clerk v1 and v2
JWTs](https://clerk.com/docs/backend-requests/resources/session-tokens)

Pulled code samples from an example app that I've checked in to make
maintenance and testing easier in the future.
2025-05-02 11:13:19 -04:00
yujiseok 2ca5a12854 fix broken Apple REST API link in auth-apple.mdx (#35404)
- replace broken Sign in with Apple REST API link
2025-05-01 15:25:22 +00:00
Nate Barbettini ae7759be9c fix(docs): Fix example file name in auth/quickstarts/nextjs.mdx (#35364)
fix: Fix example file name in auth/quickstarts/nextjs.mdx
2025-04-30 18:04:30 +00:00
Akshar Dave 1c615137bb Fixed typo— "cookiesm" (#35179) 2025-04-21 15:46:45 +00:00
Rodrigo Mansueli f38d08fefb Chore: Update password leak link in the docs (#34916) 2025-04-11 10:07:01 -03:00
Charis 258bc37919 docs: add type hints (#34678) 2025-04-08 13:25:46 -04:00
gitNetw0rkandCharis ab9b0c9ac5 Update nextjs.mdx (#34587)
* Update nextjs.mdx

just a little comment.. that save LOTS OF DEBUGGING time.

* fix: tweak wording

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-03-31 15:11:56 +00:00
Stojan Dimitrovski 3b698ba02b docs: clarify saml slo alternative (#33653) 2025-03-29 13:02:31 +00:00
Stojan Dimitrovski 81db6fbaa1 docs: add clerk third-party auth integration docs (#34439) 2025-03-29 12:39:33 +00:00
Stojan Dimitrovski af2a2fb523 docs: fix typo in firebase example (#33874) 2025-03-29 12:36:02 +00:00
Evan Li b289078148 Fix minor typo in auth-apple.mdx (#34488)
Update auth-apple.mdx

Minor typo fix
2025-03-27 19:32:32 +00:00
Stephon Harris 3086f8904a Update sessions.mdx (#34350)
Rewriting the paragraph for clairty
2025-03-27 19:00:45 +00:00
Charis 311232b3e1 feat(docs): ts hover annotations on code blocks (#34327) 2025-03-21 15:48:32 -04:00
Charis 2709fa4a3e feat: pre-compile-time partials (#34028)
Partials are currently defined via MDX includes. This PR switches to pre-compile-time partials, which have a new syntax:

```
<$Partial path="path/to/file.mdx" />
```

## Rationale

This produces two improvements:

1. Partial substitution can occur in pipelines that don't use MDX compilation. For example, we can now do partial substitution before building the search index, so partial content will also be indexed.
2. After the App Router migration, the MDXProviders should've been deprecated, but were kept around for the sole reason of making partials work, and leading to us shipping unnecessary client-side code. We get a minor decrease in overall client bundle size (5.74 MB to 5.6 MB) by getting rid of the Providers.

## Breaking changes

Besides the change to partial syntax, the arguments are also less powerful than before because we are doing string substitution and don't have the full power of JS. Defining string variables is still possible (documented in the Contributing guide), and since that's all we actually do in practice, this shouldn't be too cumbersome. There is always the escape hatch of making a custom component for more complex content reuse cases.
2025-03-18 10:37:39 -04:00
Abu Huraira 7b7fd28947 fix(docs): replace {} with JSON.stringify({}) in custom send-sms edge function (#33794)
fix(docs): replace {} with JSON.stringify({})
2025-02-24 15:36:30 +00:00
Charis a820c56ed0 chore: docs linting (#33574) 2025-02-21 14:13:00 -05:00
Florian Lefebvre 508420a9c4 docs(auth): improve auth hooks (#28936) 2025-02-19 06:00:27 +00:00
Han Qiao 6c24be3703 chore: clarify local hook secrets should be stripped of prefix (#33581) 2025-02-13 16:01:16 +00:00
df9f410c50 docs(billing): complete rewrite
* deleted all old pages except from FAQs
* added pricing section to feature docs pages
* adjusted all links to new pages (on Dashboard, in docs, on Pricing page)
* configured redirects from old billing docs pages to new pages
---------
Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com>
2025-02-12 21:05:18 +01:00
Charis e7ed2de400 fix: show how to include generated types in SvelteKit context (#33565) 2025-02-12 14:44:07 -05:00
Charis 7d1dde2b7d fix: update kt code example (#33564) 2025-02-12 14:43:41 -05:00
Ahmed Mansour 9a48cfb57d nextjs.mdx: Correct links in nextjs auth example (#33465)
The docs directed to localhost:3000/login
It seems the nextjs template now has a new route `/sign-in`
Added note: 
the route does not become available until .env.local is in env
2025-02-10 19:24:52 +00:00
Tyler af7d12cedb docs: Add Flutter code sample for Firebase Auth integration guide (#31087)
* docs: Add Flutter code sample for accessToken function

* docs: fix the code sample
2025-02-05 10:16:15 +09:00
Charis 2d55512553 chore: activate spelling and admonitions lints for docs (#33292) 2025-02-04 13:18:31 -05:00
Andrew Smith 8df40c3dcd docs: replace deprecated magiclink and signup with email type (#33213)
* docs: replace deprecated magiclink and signup with email type

* chore(format): fix formatting for docs
2025-01-31 19:40:27 +00:00
Charis 93885b090f chore: examples (#33183) 2025-01-30 13:08:46 -05:00
Nolan Welch fd5058e6ef docs: fix typo in auth-github social login guide (#33190)
chore: fix typo in auth-github social login guide
2025-01-30 15:31:27 +00:00