Skip to content

sulfur-auth/sulfur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sulfur

Sulfur is a robust, secure authentication library for Python.

Installation

pip install sulfur-auth

Examples

from sulfur_auth import auth

sulfur = auth()

# Register a new user
auth_token = sulfur.register("username", "passwordHash")

# Login
auth_token = sulfur.auth("username", "passwordHash")

# Subscribe to events
sulfur.subscribe("userRegister", lambda ctx: print(ctx))

To create an API, you can use flask to create a web server serving endpoints for login and registration.

About

A robust, secure authentication library for Python.

Topics

Resources

License

Stars

Watchers

Forks

Languages