-
Notifications
You must be signed in to change notification settings - Fork 602
Labels
bugSomething isn't workingSomething isn't workingsupabase-jsRelated to the supabase-js library.Related to the supabase-js library.
Description
Describe the bug
After receiving a web hook from an external system, I'm trying to modify a flag stored in the user_metadata. As it is server side I only have the user id so I'm using supabase.auth.admin.updateUserById to update the data. I was hoping that it would trigger the listener onAuthStateChange with a userUpdate event, pretty much as the updateUser in the GoTrueClient does, but it does not trigger the listener.
The web hook executes an edge function.
Is that the expected behaviour?
Thanks in advance
Juan
Library affected
supabase-js
Reproduction
No response
Steps to reproduce
No response
System Info
System:
OS: macOS 26.2
CPU: (16) arm64 Apple M3 Max
Memory: 4.33 GB / 128.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.20.0 - /usr/local/bin/node
npm: 11.6.2 - /usr/local/bin/npm
Deno: 2.3.1 - /Users/juanantoniosantana/.deno/bin/deno
Browsers:
Chrome: 144.0.7559.133
Firefox: 91.7.1
Safari: 26.2
Safari Technology Preview: 26.0Used Package Manager
npm
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Supabase JS Library issue and not an issue with the Supabase platform. If it's a Supabase platform related bug, it should likely be reported to supabase/supabase instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingsupabase-jsRelated to the supabase-js library.Related to the supabase-js library.