$ docker compose up
Open Django shell: python manage.py shell
and type:
from api.models import SupertokensUser
from supertokens_python.recipe.emailpassword.syncio import sign_up
username, password = '[email protected]', '123456'
resp = sign_up(username, password)
u = SupertokensUser(id=resp.user.user_id, email=username)
u.save()
(to-be-updated)
Using httpie
$ http POST :8000/api/auth/signin formFields:='[{"id":"email","value":"[email protected]"},{"id":"password","value":"123456"}]'