Authentication
Warning
This solution is enough for web browsers, but will not work for clients that doesnβt have a way to store cookies in it (e.g. mobile apps). For those it is recommended to use token authentication methods. JWT can be used with strawberry-django-auth lib.
strawberry_django
provides mutations to get authentication going right away.
The auth.register
mutation performs password validation using Djangoβs validate_password
method.