Skip to main content
Skip to main content

update - Auth Module Reference

This documentation provides a reference to the update method. This belongs to the Auth Module.

update(data, sharedContext?): Promise<AuthUserDTO[]>

This method updates existing auths.

Example

const authUsers = await authModuleService.update([
{
id: "authusr_123",
app_metadata: {
test: true,
},
},
])

Parameters

dataUpdateAuthUserDTO[]Required
The attributes to update in the auth users.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<AuthUserDTO[]>Required
The updated auths.

update(data, sharedContext?): Promise<AuthUserDTO>

This method updates an existing auth.

Example

const authUser = await authModuleService.update({
id: "authusr_123",
app_metadata: {
test: true,
},
})

Parameters

dataUpdateAuthUserDTORequired
The attributes to update in the auth user.
sharedContextContext
A context used to share resources, such as transaction manager, between the application and the module.

Returns

PromisePromise<AuthUserDTO>Required
The updated auth.
Was this section helpful?