Commit Graph
11 Commits
Author SHA1 Message Date
Kevin Kuhl 82715efc25 Correct auth.mdx examples (#34746) 2025-06-12 20:55:24 +00:00
Lakshan Perera 3c390c7891 chore: Use npm specifier instead of jsr for supabase-js imports (#36291)
chore: update examples to use npm specifier instead of jsr
2025-06-09 22:36:48 -04:00
Filippo BrigatiandCharis 83947491f3 Add user token initialization in auth.mdx (#32997)
* Add user token in auth.mdx

I added the part of the code responsible for initializing the Supabase client with the token passed via the header, to ensure compliance with RLS (Row-Level Security).

As shown on this page:
https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/select-from-table-with-auth-rls/index.ts

Otherwise authentication will not be completed.

* make js compatible

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2025-06-02 16:02:49 -04:00
Rodrigo Mansueli f233c78794 Chore: update also last example on the page (#32809) 2025-01-16 06:28:41 +11:00
Rodrigo Mansueli 3e94bc483c Chore: update edge function example (#32808)
Update auth.mdx
2025-01-15 15:20:43 -03:00
Charis f4779d4844 refactor: migrate guides to app router (#23101)
Migrate guides to App Router.
2024-07-03 10:25:06 -04:00
Thor 雷神 Schaeff 0dbb5e5225 docs: update deno deps to jsr. (#27766)
docs: update deno desp to jsr.
2024-07-03 18:06:55 +08:00
grumpy-minerandCharis 5da928a0a1 Update auth.mdx - update fetching the user code example (#26614)
Update auth.mdx

Add constant authHeader in code example of Fetching the user

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-05-21 23:33:44 +00: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
Simon HaandCharis 597c554e7a [WIP] 20771/fix auth get user for edge functions (#23155)
* docs: fix RPC sql example

* docs: fix auth.getUser() calls to use auth.getUser(jwt)

- add lines to get token before calling auth.getUser() as session is not
set after setting authHeader in client

* Apply suggestions from code review

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-04-30 20:34:58 +00:00
Charis 42723d8232 refactor: move ai, realtime, functions, remaining auth docs to content directory (#21259) 2024-02-14 17:39:05 +00:00