From 0ddb0f65e6ac583b93b08d8d015a45fe602e7e18 Mon Sep 17 00:00:00 2001 From: Copple <10214025+kiwicopple@users.noreply.github.com> Date: Wed, 29 Jun 2022 13:37:20 -0500 Subject: [PATCH] Adds the `jwt()` function --- web/docs/guides/auth/row-level-security.mdx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/web/docs/guides/auth/row-level-security.mdx b/web/docs/guides/auth/row-level-security.mdx index c75735384e0..284b2691849 100644 --- a/web/docs/guides/auth/row-level-security.mdx +++ b/web/docs/guides/auth/row-level-security.mdx @@ -46,11 +46,15 @@ Supabase provides you with a few easy functions that you can use with your polic Returns the ID of the user making the request. +### `auth.jwt()` + +Returns the JWT of the user making the request. + ### `auth.role()` :::caution -Deprecated +Deprecated ::: @@ -74,6 +78,12 @@ using ( ### `auth.email()` +:::caution + +Deprecated. Use `auth.role -> 'email'` instead. + +::: + Returns the email of the user making the request. ## Examples