async def register(
            email: EmailStr = Body(..., description="User's email address"),
            password: str = Body(..., description="User's password"),
            name: str | None = Body(
                None, description="The name for the new user"
            ),
            bio: str | None = Body(
                None, description="The bio for the new user"
            ),
            profile_picture: str | None = Body(
                None, description="Updated user profile picture"
            ),
            is_verified: bool = Body(
                False,
                description="Whether to verify the user immediately",
            ),
            auth_user=Depends(self.providers.auth.auth_wrapper()),
        ) -> WrappedUserResponse:
            """Register a new user with the given email and password."""

            if is_verified and not auth_user.is_superuser:
                raise R2RException(
                    "Non-superuser cannot verify users during registration.",
                    403,
                )

            registration_response = await self.services.auth.register(
                email=email,
                password=password,
                is_verified=is_verified,
                name=name,
                bio=bio,
                profile_picture=profile_picture,
            )

            return registration_response  # type: ignore
Register a new user with the given email and password.
py/core/main/api/v3/users_router.py