Pyrebase4 icon indicating copy to clipboard operation
Pyrebase4 copied to clipboard

Exception handling in JWT token verification

Open saqe opened this issue 4 years ago • 1 comments

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

saqe avatar Jan 29 '21 23:01 saqe

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 [email protected] 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 .

nhorvath avatar Jan 29 '21 23:01 nhorvath