labd / django-cognito-jwt

An Authentication backend for Django Rest Framework for AWS Cognito JWT tokens
MIT License
177 stars 59 forks source link

Add option to choose between id token and access token #44

Open ckng0221 opened 1 year ago

ckng0221 commented 1 year ago

Fixes #22

User can define to use id token or access token in settings.py. Without defining, it by default take id token.

COGNITO_TOKEN_TYPE = "access"  # '{'id', 'access'} Default: 'id'