Creates a new user.
This function should only be called on a server. Never expose your service_role
key in the browser.
Delete a user. Requires a service_role
key.
The user id you want to remove.
If true, then the user will be soft-deleted (setting deleted_at
to the current timestamp and disabling their account while preserving their data) from the auth schema.
Defaults to false for backward compatibility.
This function should only be called on a server. Never expose your service_role
key in the browser.
Generates email links and OTPs to be sent via a custom email provider.
Get user by id.
The user's unique identifier
This function should only be called on a server. Never expose your service_role
key in the browser.
Sends an invite link to an email address.
The email address of the user.
Additional options to be included when inviting.
A custom data object to store additional metadata about the user. This maps to the auth.users.user_metadata
column.
The URL which will be appended to the email link sent to the user's email address. Once clicked the user will end up on this URL.
Get a list of users.
This function should only be called on a server. Never expose your service_role
key in the browser.
An object which supports page
and perPage
as numbers, to alter the paginated results.
Removes a logged-in session.
A valid, logged-in JWT.
The logout sope.
Updates the user data.
The data you want to update.
This function should only be called on a server. Never expose your service_role
key in the browser.
Generated using TypeDoc
Contains all MFA administration methods.