Error Handling Overview
All our functions will throw one of these four types of errors:
To detect if the error thrown from supertokens-node lib, use the function
isErrorFromAuth. If the error is thrown by supertokens-node library, it will always be a supertokens.Error object.
The above are all
enums and their number value, as seen on the console, are: