📝
Authefy
  • Authefy GraphQL API
  • @authefy/web-client
    • Create User
    • Update User
    • Delete User
    • Read User
    • Login with Password
    • Login with Bitclout
    • Login with Refresh Token
    • Revoke Refresh Token
  • @authefy/node-client
    • Create User
    • Update User
    • Delete User
    • Read User
    • Read All Users
    • Fetch User Events
    • Listen User Events
    • Login with Password
    • Login with Refresh Token
    • Authorize Bearer Token
    • Revoke Refresh Token
Powered by GitBook
On this page
  1. @authefy/web-client

Update User

requires user id

PreviousCreate UserNextDelete User

Last updated 4 years ago

Was this helpful?

CtrlK

Was this helpful?

import authefyWebClient from './path/to/@authefy/web-client';
/*
    When updating user details, the old user details will be merge to the new user details.
    If a key exists in both details, the value from the new user details will be used.
*/

await authefyWebClient.user.update('ca10416e530f5f7bb7dfb02940143618', {
    isVerified: 
true
,
email: 'uphibtu@su.li',
details: {
age: 24
}
})