nhorvath / Pyrebase4

A simple python wrapper for the Firebase API. ⛺
254 stars 63 forks source link

Exception handling in JWT token verification #27

Open saqe opened 3 years ago

saqe commented 3 years ago

We need an exception handling mechanism to detect when an invalid token is passed in: auth.get_account_info('INVALID_TOKEN')

nhorvath commented 3 years ago

Examine the exception raised by the request or the response json and raise your own exception then.

On Fri, Jan 29, 2021, 6:18 PM Saqib Aleem notifications@github.com wrote:

We need an exception handling mechanism to detect when an invalid token is passed in: auth.get_account_info('INVALID_TOKEN')

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nhorvath/Pyrebase4/issues/27, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABIJXCBSRZMQEETHB2ADO3S4M63TANCNFSM4WZV32EA .