by ashkanahmadi
I would like to add is_admin to the JWT returned from Supabase auth and I run the official code on the doc but when I sign in, I dont see the is_admin key in the token:
This is the official doc: https://supabase.com/docs/guides/auth/auth-hooks/custom-access-token-hook?queryGroups=language&language=sql under SQL > Add admin role
When I send email and password to /auth/v1/token?grant_type=password, I get the JWT that I always get without the is_admin key in the object.
Any idea what might be going wrong for not seeing the result in the JWT?
Thanks
The user is trying to add an 'is_admin' key to the JWT returned from Supabase auth by following the official documentation. However, after implementing the code, the 'is_admin' key is not present in the JWT when signing in with email and password.