jetbridge / flask_cognito

Flask authentication with JWT against AWS Cognito
MIT License
94 stars 30 forks source link

COGNITO_JWT_HEADER_PREFIX Optional #4

Closed andresrestrepo closed 4 years ago

andresrestrepo commented 5 years ago

Hi guys, I have a little question

if COGNITO_JWT_HEADER_PREFIX is optional i can set this in empty, but the code need to validate this,

in get_token we can to have something like this if (len(parts) == 1): parts = ["", parts[0]]

before the validation

Thanks

revmischa commented 5 years ago

Okay sure