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 (Auth0 Django API SDK Quickstarts: 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: GitHub - nahuelbrandan/auth0-api-authorization-with-custom-model: auth0 api authorization with custom model