Skip to main content

A comprehensive authentication SDK for Python with Pydantic support. Features include user registration, login, 2FA, password management, and secure token handling.

Project description

Arvasit Authentication SDK

A comprehensive authentication SDK for Node.js and Python with TypeScript/Pydantic support.

🚀 Quick Start

pip install arvasit-auth-sdk
from auth_sdk import AuthService, AuthServiceConfig

config = AuthServiceConfig(
    url="https://your-auth-service.com",
    public_key="your_public_key",
    secret_key="your_secret_key"
)

auth_service = AuthService(config)

📋 Available Methods

User Management

  • registerUser(data) - Register new user
  • loginUser(data) - User login
  • logoutUser(token) - User logout
  • refreshToken(token) - Refresh access token
  • verifyToken(token) - Verify token validity

Password Management

  • forgotPassword(email) - Send password reset
  • resetPassword(data) - Reset password
  • changePassword(data) - Change password
  • verifyPasswordReset(data) - Verify reset token

Two-Factor Authentication

  • enable2FA(userId) - Enable 2FA
  • disable2FA(userId) - Disable 2FA
  • verify2FA(data) - Verify 2FA code
  • generate2FABackupCodes(userId) - Generate backup codes

User Profile

  • getUserProfile(userId) - Get user profile
  • updateUserProfile(userId, data) - Update profile
  • deleteUser(userId) - Delete user account

Session Management

  • getActiveSessions(userId) - Get active sessions
  • revokeSession(sessionId) - Revoke session
  • revokeAllSessions(userId) - Revoke all sessions

Verification

  • sendEmailVerification(email) - Send email verification
  • verifyEmail(data) - Verify email
  • sendPhoneVerification(phone) - Send phone verification
  • verifyPhone(data) - Verify phone

🔧 Configuration

Both SDKs support the same configuration:

interface AuthServiceConfig {
  url: string;           // Your auth service URL
  publicKey: string;     // Public API key
  secretKey: string;    // Secret API key
}

📚 Examples

See the examples/ directory for detailed usage examples.

📄 License

MIT License - see LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arvasit_auth_sdk-0.1.6.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arvasit_auth_sdk-0.1.6-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file arvasit_auth_sdk-0.1.6.tar.gz.

File metadata

  • Download URL: arvasit_auth_sdk-0.1.6.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for arvasit_auth_sdk-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e45ffbe4cbde5d550675cfce17a508777c28d94f847f7f8838564c9aef8110a3
MD5 6bb037efb0c72168b60756adcbf10021
BLAKE2b-256 4fc7bcbedcfb0ab6165d525c7e57cfaa29a8e4dc2ef91d99aa68358e4c99a7ee

See more details on using hashes here.

File details

Details for the file arvasit_auth_sdk-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for arvasit_auth_sdk-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 79cff91a950542e6570326664a0c4483c71c6df63150cc43063234461154ce20
MD5 544cc2842260ba82abf33fbf09242f97
BLAKE2b-256 a980d2ea7f926e65d2a4cc531ee5ad90f09ca040fb1b20c64ae1cdb0dd91ed51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page