PendingRegistrationService

class PendingRegistrationService[source]

Methods

confirm

Verify the email code and finalize the registration.

create

Create a pending registration and send a verification code.

confirm(json_body, *, token)[source]

Verify the email code and finalize the registration.

Creates the user in the database with email_verified=True and returns a login response.

Parameters:
Returns:

A login response with the new user and access token.

Return type:

UserLoginResponse

create(json_body)[source]

Create a pending registration and send a verification code.

The user account is NOT created in the database yet. It will be finalized when the email is verified via the confirm endpoint.

Parameters:

json_body (CreatePendingRegistrationData) – The body of the request. See CreatePendingRegistrationData for information about the possible fields. You can provide this data as a CreatePendingRegistrationData or as a dictionary.

Returns:

An identifier for the pending registration.

Return type:

PendingRegistrationResponse