Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

socian-auth

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

socian-auth

Socian Auth Python SDK for authentication and user management

  • 0.0.8
  • Source
  • PyPI
  • Socket score

Maintainers
1

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc