PendingRegistrationService¶
- class PendingRegistrationService[source]¶
- 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:
json_body (
ConfirmPendingRegistrationData) – The body of the request. SeeConfirmPendingRegistrationDatafor information about the possible fields. You can provide this data as aConfirmPendingRegistrationDataor as a dictionary.token (
str) – The pending registration identifier.
- Returns:
A login response with the new user and access token.
- Return type:
- 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. SeeCreatePendingRegistrationDatafor information about the possible fields. You can provide this data as aCreatePendingRegistrationDataor as a dictionary.- Returns:
An identifier for the pending registration.
- Return type: