NabuCasa / pycognito

Python library for using AWS Cognito. With support for SRP.
Apache License 2.0
126 stars 38 forks source link

Throw TokenVerifificationError if the key ID is not known by cognito #259

Open RudolfVonKrugstein opened 1 month ago

RudolfVonKrugstein commented 1 month ago

If someone tries to verify a JWT Token, which has a Key ID not known to Cognito, an IndexError is currently thrown.

This fixes it so that a TokenVerificatinError is thrown.