Sunday, May 28, 2017

Re: Django rest framework JWT and custom authentication backend

On Saturday 27 May 2017 02:08:02 Robin Lery wrote:

 

> curl -X POST -d "email=admin@gmail.com&password=123123"

> http://localhost/api-token-auth/

>

> "non_field_errors": [

> "Unable to log in with provided credentials."

> ]

>

> What am I missing? Why is it that its working while loggin to the

> django admin site, but get error when getting token with django rest

> framework jwt?

 

Shot in the dark: Your payload is not json.

--

Melvyn Sopacua

No comments:

Post a Comment