Error Handling Overview
All our functions will throw one of these four types of errors:
- SuperTokensGeneralException
- SuperTokensUnauthorisedException
- SuperTokensTryRefreshTokenException
- SuperTokensTokenTheftException
You can define custom error handling login using the handleError function.