Auth0 Home Blog Docs

M2M conection with a custom model instead used User model of django.contrib.auth

I’m working with Auth0 in a project of Python + Django, and have a problem, maybe can help me here.

Followint this tutorial (https://auth0.com/docs/quickstart/backend/django/01-authorization), I whant to implement a M2M connection, but instead using User Model of django.contrib.auth, I whant to use a custom model for mapping the client_id.

When use User of django.contrib.model module works fine, but when whant to change to my custom model get the error {“detail”:“Invalid signature.”}.

Here is the code: https://github.com/nahuelbrandan/auth0-api-authorization-with-custom-model