© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•8mo 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. 
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,
    });
...
...
    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
Custom Access Token Hook | Supabase Docs
Customize the access token issued by Supabase Auth
Custom Access Token Hook | Supabase Docs
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Hook requires authorization token
SupabaseSSupabase / help-and-questions
2mo ago
Hook requires authorization token
SupabaseSSupabase / help-and-questions
6mo ago
SUPABASE: Custom auth hook - GOTRUE_HOOK_CUSTOM_ACCESS_TOKEN_SECRET
SupabaseSSupabase / help-and-questions
13mo ago
No Custom Auth Hook
SupabaseSSupabase / help-and-questions
4mo ago