Skip to main content

Services

The business logic is organized into 6 service classes that you can use directly:

ServiceModuleOperations
AuthServicecore.services.auth_servicesign_up, sign_in, sign_out
SessionServicecore.services.session_serviceget, list_for, revoke, revoke_others, refresh
PasswordServicecore.services.password_servicerequest_reset, reset, change
EmailVerificationServicecore.services.email_servicesend_verification, verify
AccountServicecore.services.account_serviceupdate_user, list_accounts, unlink, delete_user
OAuthServicecore.services.oauth_serviceinitiate, handle_callback

Direct usage

from nexfetch_auth.core.services import AuthService

auth_service = AuthService(auth.context)
result = await auth_service.sign_up(body, ip_address="127.0.0.1", user_agent="...")