Skip to main content

Example PyPI (Python Package Index) Package

Project description

Socian Auth Python SDK

Version License Python Versions

Overview

The Socian Auth Python SDK provides a convenient way to interact with the Socian Auth API for authentication and user management.

Installation

You can install the library using pip:

pip install socian-auth

Usage

Initialization

from socian_auth import SocianAuthApiClient

client = SocianAuthApiClient(
    client_id="your_client_id",
    client_secret="your_client_secret",
    ssh_public_key="your_ssh_public_key"
)

Getting Intent

intent_obj = client.get_intent("auth.signIn", "http://localhost:3000/auth/callback")
print(intent_obj)

Checking User Existence

email = "example@example.com"
is_user_exist = client.check_user_exists(intent_id=intent_obj.intent_id, email=email)
print(is_user_exist)

User Signup

user_info = client.user_signup(intent_id=intent_obj.intent_id, name="John Doe", email=email, password="password123")
print(user_info)

User Signin

login_data = client.user_signin(email=email, password="password123")
print(login_data)

User Information

user_info = client.user_info(access_token=login_data.access_token)
print(user_info)

Documentation

For more details and API documentation, please refer to Socian Auth SDK Documentation.

Contributing

If you find any issues or have suggestions for improvement, please open an issue or create a pull request on GitHub.

License

This project is licensed under the MIT License - see the 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

socian_auth-0.0.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.

socian_auth-0.0.6-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file socian_auth-0.0.6.tar.gz.

File metadata

  • Download URL: socian_auth-0.0.6.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for socian_auth-0.0.6.tar.gz
Algorithm Hash digest
SHA256 e64b28b379562d365fe6b61598576524f212336a1ae8f6b64917d12f3ba30e9f
MD5 2e7184c06000fc7634b47a4db48c200a
BLAKE2b-256 d1f328d104cea9b2f642c0e4186e58112c0a0263a7e260321fde4eee67f0fb72

See more details on using hashes here.

File details

Details for the file socian_auth-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: socian_auth-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for socian_auth-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 38870ed2c540f29023865cc062903a0ff3216f43a08f05de08ec16b16019ff46
MD5 0066d1ee85476e421ed43ca3db66acb8
BLAKE2b-256 e7a58ffb2361bf0eaf8a64b89014b8c888cbd52a6c9bd21774d938cdf362cef5

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