aaronn / django-rest-framework-passwordless

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

AttributeError at /auth/token #122

Open wachenpaul opened 1 year ago

wachenpaul commented 1 year ago

Hi,

I'm getting an error after sending a debug email and trying to verify it with the code. When I called localhost:8000/auth/token/ after a code was sent to me, everything worked fine, but when I submitted it, it threw an AttributeError at /auth/token/ with message type object 'Token' has not attribute 'objects' . Is this a problem that has occurred in the past or am I missing something? I just followed the instructions provided by this github README...

Regards, wachenpaul

marknotfound commented 1 year ago

@wachenpaul Be sure follow the instructions from DRF for configuring TokenAuthentication here: https://www.django-rest-framework.org/api-guide/authentication/#tokenauthentication