mblackgeo / flask-cognito-lib

A Flask extension that supports protecting routes with AWS Cognito following OAuth 2.1 best practices
https://mblackgeo.github.io/flask-cognito-lib/
MIT License
57 stars 15 forks source link

Update decorators.py #15

Closed ctgallagher4 closed 1 year ago

ctgallagher4 commented 1 year ago

Thank you for a great repository!

From the official python docs:

get(key[, default]) Return the value for key if key is in the dictionary, else default. If default is not given, it defaults to None, so that this method never raises a KeyError.

Specifying a keyword argument causes an error, at least on my machine.

Ubuntu 20.04.5 Python 3.9.16

https://docs.python.org/3.10/library/stdtypes.html?highlight=dict%20get#dict.get

mblackgeo commented 1 year ago

Thanks for spotting this!

mblackgeo commented 1 year ago

Merged and released in v1.3.2 :tada: