GraphQL implementation of the Django authentication system.
It abstract all the basic logic of handling user accounts out of your app, so you don’t need to think about it and can get up and running faster.
No lock-in. When you are ready to implement your own code or this package is not up to your expectations , it’s easy to extend or switch to your implementation.
Documentation
Documentation is available at read the docs.
Features
Fully compatible with Relay
Works with default/custom user model
JWT authentication (with Django GraphQL JWT)
User query with filters (with Django Filter and Graphene Django)
User registration with email verification
Resend activation email
Add secondary email, with email verification too
Retrieve/Update user
Archive user
Permanently delete user or make it inactive
Turn archived user active again on login
Track user status (archived, verified, secondary email)
Password change
Password reset through email
Revoke user refresh tokens on account archive/delete/password change/reset
All mutations return success and errors
Default email templates (you will customize though)
Customizable, no lock-in
Preview
Handling user accounts becomes super easy.
mutation {
register(
email: "new_user@email.com",
username: "new_user",
password1: "123456super",
password2: "123456super",
) {
success,
errors,
token,
refreshToken
}
}
Check the status of the new user:
u = UserModel.objects.last()
u.status.verified
# False
During the registration, an email with a verification link was sent.
mutation {
verifyAccount(
token:"<TOKEN ON EMAIL LINK>",
) {
success,
errors
}
}
Now user is verified.
u.status.verified
# True
Check the installation guide or jump to the quickstart. Or if you prefer, browse the api.
Release files for django-graphql-auth 0.3.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-graphql-auth-0.3.16.tar.gz | 19.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_graphql_auth-0.3.16-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 47.4 kB
Release files / django-graphql-auth-0.3.16.tar.gz
| Download URL | django-graphql-auth-0.3.16.tar.gz |
|---|---|
| Size | 19.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e4e326ad2f71935e5bb9c40e3698bc57d3ba1ebdcd4d4a91e2b7ff4d65996a9
|
|
BLAKE2b-256 checksum How to use checksums |
6e408ed7aef72bf0689095a8c3a52b9b8b261f8a531a307668a3dccc16d48c0a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.1
|
Release files / django_graphql_auth-0.3.16-py2.py3-none-any.whl
| Download URL | django_graphql_auth-0.3.16-py2.py3-none-any.whl |
|---|---|
| Size | 28.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f60a8d1c1497d97f74193ab5b8475b6c2432840bb383e641dd1a78ff909490ee
|
|
BLAKE2b-256 checksum How to use checksums |
428f59765e08d81c21afe33eab3b70ff94e70e56a2e0e28eb434e22f2a2f71f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.1
|