can't define auth.hook in toml

I'm following this guide. https://supabase.com/docs/guides/auth/auth-hooks?queryGroups=language&language=sql#local-development I added this to my config.toml
[auth.hook.orgpermissions]
enabled = true
uri = "pg-functions://public/org_permissions_access_token_hook"
[auth.hook.orgpermissions]
enabled = true
uri = "pg-functions://public/org_permissions_access_token_hook"
and I get the error in the screenshot.
No description
3 Replies
Shinobiwannabe
ShinobiwannabeOP8mo ago
No description
Shinobiwannabe
ShinobiwannabeOP8mo ago
nvm I figured out the problem. I thought I could name the hook what I wanted. https://github.com/supabase/supabase/issues/22031
GitHub
Unable to add auth hooks to config · Issue #22031 · supabase/supaba...
Hi there, I'm trying to use the Auth Hooks locally by adding the following snippet found in the docs to the config.toml. ... [auth.hook.custom_access_token] enabled = true uri = "pg-functi...
Shinobiwannabe
ShinobiwannabeOP8mo ago
Corrected version
[auth.hook.custom_access_token]
enabled = true
uri = "pg-functions://postgres/public/org_permissions_access_token_hook"
[auth.hook.custom_access_token]
enabled = true
uri = "pg-functions://postgres/public/org_permissions_access_token_hook"

Did you find this page helpful?