Graphql and relay authentication with Graphene for Django.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-graphql-auth-django-4-0.3.17.tar.gz
.
File metadata
- Download URL: django-graphql-auth-django-4-0.3.17.tar.gz
- Upload date:
- Size: 27.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdbe92814f3d526afdfaa1847369d7b83ebe152c37dad4d6cc5bd1f46c29f410 |
|
MD5 | bb092c6d1c623eca5b86fe17227aa660 |
|
BLAKE2b-256 | 0a7214c745a62f72de1c540dadfb928ddabb81e8f0a650a3e806ba266b945fac |