aaronn / django-rest-framework-passwordless

Passwordless Auth for Django REST Framework
MIT License
708 stars 154 forks source link

Demo user token freezed #132

Open caelus-dev opened 1 year ago

caelus-dev commented 1 year ago

Hi,

I found an issue or maybe I don't understand how demo user works (which would also be no surprise, because there's no detailed documentation about it).

So after I added a new user to the system, I added that user to demo users:

    'PASSWORDLESS_DEMO_USERS': {
        uuid.UUID('82426894-a119-4afe-8064-2fb5d663bb6e'): '000000',
    },

But after that nothing really happens. In the callbacktoken db table the last token remains active (is_active is true), there are no new emails, and the auth doesn't accept the given '000000', because there is no callbacktoken with '000000' key.

When I remove the user from the PASSWORDLESS_DEMO_USERS, the auth works again.

What's the problem?