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 (, 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: