Probably I miss something or are there some error ...
# javascript
b
Probably I miss something or are there some error in the reference documentation? When I try to use https://supabase.com/docs/reference/javascript/auth-api-updateuserbyid I receive the error that this function is not available. Anyone else here with the same problem or any advice how to fix this?
g
Do you have small d Id not ID at end of name?
b
like mentioned in the example const { data: user, error } = await supabase.auth.api.updateUserById( '6aa5d0d4-2a9f-4483-b6c8-0cf4c6c98ac4', { email: 'new@email.com' } )
but updateUserById can't be found
g
Definitely in the latest supabase.js
@bobmolgui Maybe supabase is not initialized?
I just commented out supabase = supabase.createClient and get: supabase.from is not a function
a
@garyaustin he used the wrong api (he used the client)
b
No after checking again I use the right package @supabase/supabase-js but it's not working.
a
I've told you, it's the wrong package. It's for the client side
b
And that was a wrong statement, but anyway thanks for your help. 😉 Just for your info: I was on the wrong version "^1.29.1", after updating to "1.35.2" it works fine.