django-rest-framework-passwordless icon indicating copy to clipboard operation
django-rest-framework-passwordless copied to clipboard

AttributeError at /auth/token

Open wachenpaul opened this issue 3 years ago • 1 comments

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

wachenpaul avatar Nov 22 '22 20:11 wachenpaul

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

marknotfound avatar Dec 29 '22 02:12 marknotfound