pallets-eco / flask-jwt

JWT (JSON Web Tokens) for Flask applications
MIT License
564 stars 178 forks source link

user table without id as primary key #141

Closed khirul closed 4 years ago

khirul commented 4 years ago

i am using established database for my project. the problem is my user table using user_id instead of id as primary key.. the system give this error AttributeError: 'UserModel' object has no attribute 'id'.. my question is how to tell identity to use user_id instead of id?