api.updateUser

Updates the user data.

Parameters

  • jwtrequiredstring

    A valid, logged-in JWT.

  • attributesrequiredUserAttributes

    The data you want to update.

Examples

Update user info that Gotrue holds (also used for setting new passwords)

const { error, data } = await api
.updateUser(access_token, { password : 'Why Shinji?' })