oscarychen / django-ninja-simple-jwt

Simple and elegant stateless JWT-based authentication built for django-ninja
MIT License
25 stars 3 forks source link

How to reference foreign key in TOKEN_CLAIM_USER_ATTRIBUTE_MAP ? #22

Closed vitokorn closed 2 months ago

vitokorn commented 2 months ago

Thanks for this awesome library. I have a foreign key referencing the 'company' model in my 'User' model. How can I include this foreign key in the TOKEN_CLAIM_USER_ATTRIBUTE_MAP?