Commit Graph
18 Commits
Author SHA1 Message Date
Thor 雷神 SchaeffandCharis 7ce6958030 feat: add rbac claim auth hook. (#21263)
* feat: add rbac claim auth hook.

* feat: get user role from jwt.

* chore: update full-schema.

* feat: add RBAC guide.

* feat: use plpgsql.

* Apply suggestions from code review

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

* chore: make top level claim.

* chore: set search_paths.

* chore: accessing custom claims.

---------

Co-authored-by: Charis <26616127+charislam@users.noreply.github.com>
2024-03-04 14:24:32 +00:00
Jon Meyers a750896a34 Docs: remove outdated section from Slack Clone example (#18600)
remove outdated section from Slack Clone example
2023-11-01 00:26:37 +00:00
Thomas Eckl 1d2dc39cc4 fix: prevent error during local startup
Bump of supabase-js brought warning concerning not provided session storage option.
Therefore switched to SupabaseClient creation via auth-helpers-nextjs which means switching from localStrage to cookieStorage.
2023-07-03 00:10:11 +02:00
Greg Richardson 26be8af745 chore: change dashboard links to new url 2023-06-22 09:32:18 -06:00
Alaister Young fc22963f16 Merge pull request #11334 from btoo/nextjs-slack-clone-fixes
fix several issues with nextjs-slack-clone:
2023-04-20 12:40:53 +10:00
Alaister Young 480d5cefef fix: use existing channel variables 2023-04-20 12:29:27 +10:00
dependabot[bot] c1d3cf6998 chore(deps): bump postcss and tailwindcss
Bumps [postcss](https://github.com/postcss/postcss) to 8.4.5 and updates ancestor dependency [tailwindcss](https://github.com/tailwindlabs/tailwindcss). These dependencies need to be updated together.


Updates `postcss` from 6.0.23 to 8.4.5
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/6.0.23...8.4.5)

Updates `tailwindcss` from 1.9.6 to 3.3.1
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v1.9.6...v3.3.1)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
- dependency-name: tailwindcss
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-12 07:55:53 +00:00
btoo 137032684c fix several issues with nextjs-slack-clone:
- fix session restoration in nextjs-slack-clone (setUser needs to be called from not only onAuthStateChange but also getSession)

- fix message listener unmounting (supabase.removeChannel expects a RealtimeChannel, not a string)

- fix fetchMessages order (ascending option must be provided within an options object)
2022-12-29 01:49:53 -05:00
Andrew Smith fe917faf46 Update examples with latest supabase-js
Update schema file to work with latest supabase-js
2022-10-26 21:45:37 +00:00
thorwebdev d4ee3473c8 chore: update examples supabase-js v2 2022-10-19 23:18:59 +08:00
dannykng 9370244537 Revert "chore: remove examples"
This reverts commit 05b96de142.
2022-09-16 10:13:18 -07:00
Isaiah Hamilton 05b96de142 chore: remove examples 2022-09-08 22:55:22 -04:00
Chris Bautista e8d1dd33a6 fix: vercel deploy button for slack clone 2022-07-28 11:15:13 -07:00
Jonathan Summers-Muir 5a38bd3d51 chore: update app.supabase.io links to app.supabase.com 2022-05-30 14:52:54 +08:00
Wen Bo Xie ceeb5e0038 chore: version bump supabase-js to 1.35.3 in nextjs slack clone 2022-05-19 22:25:01 -07:00
Amin c3fa66de18 update more slack clone links 2022-05-19 10:53:29 +07:00
Copple e053fe7dc4 updates the deploy buttons 2022-04-27 17:28:35 +02:00
Copple 1b1bce93da organises the examples by function 2022-04-27 15:20:41 +02:00