Update User

import authefyNodeClient from './path/to/@authefy/node-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 authefyNodeClient.user.update('ca10416e530f5f7bb7dfb02940143618', {
    isVerified: true,
    email: 'uphibtu@su.li',
    details: {
        age: 24
    }
})

Last updated

Was this helpful?