Skip to content

Commit

Permalink
resolves duplicate content
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwicopple committed Aug 24, 2023
1 parent 2bf3d2a commit ae1129e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/docs/pages/guides/auth/row-level-security.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ Returns the ID of the user making the request.

### `auth.jwt()`

Returns the JWT of the user making the request. Anything that you store in the user's `app_metadata` column or the `user_metadata` column will be accessible using this function. Be careful not to store too much data in both of these fields, because some browsers have a limitation of 4096 bytes for cookies.

It's important to know the distinction between these two:
Returns the JWT of the user making the request. Anything that you store in the user's `app_metadata` column or the `user_metadata` column will be accessible using this function. It's important to know the distinction between these two:

- `user_metadata` - can be updated by the authenticated user using the `supabase.auth.update()` function. It is not a good place to store authorization data.
- `app_metadata` - cannot be updated by the user, so it's a good place to store authorization data.
Expand Down

0 comments on commit ae1129e

Please sign in to comment.