Services
The business logic is organized into 6 service classes that you can use directly:
| Service | Module | Operations |
|---|---|---|
AuthService | core.services.auth_service | sign_up, sign_in, sign_out |
SessionService | core.services.session_service | get, list_for, revoke, revoke_others, refresh |
PasswordService | core.services.password_service | request_reset, reset, change |
EmailVerificationService | core.services.email_service | send_verification, verify |
AccountService | core.services.account_service | update_user, list_accounts, unlink, delete_user |
OAuthService | core.services.oauth_service | initiate, 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="...")