Error Handling Overview
All our functions will throw one of these four types of errors:
- SuperTokensGeneralError
- SuperTokensUnauthorisedError
- SuperTokensTryRefreshTokenError
- SuperTokensTokenTheftError
To know how to define custom error handling functions, please refer this link