SupabaseS
Supabase6mo ago
Barni

Custom Auth Token Hook requires authorization token

Hi i am trying to modify the claims for jwt by adding extra data to app_metadata however when following the documentation i am stuck at login with an error:

Hook requires authorization token.

usuing supabase sdk to sign in.
...
    const { error, data } = await supabase.auth.signInWithPassword({
      email: email as string,
      password: password as string,
    });
...


I checked the request and it does have the authorization bearer token in the request. Using the sdk
https://supabase.com/docs/guides/auth/auth-hooks/custom-access-token-hook?queryGroups=language&language=http
Customize the access token issued by Supabase Auth
Was this page helpful?