maxrm13
04/10/2024, 2:52 PM// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (e: any) {
if (e.isSuperTokensGeneralError) {
...
rp_st
04/10/2024, 2:55 PMimport { Error as SuperTokensError } from "supertokens-node";
try {
....
} catch (err: Error) {
if (SuperTokensError.isErrorFromSuperTokens(err)) {
//..
}
}
maxrm13
04/10/2024, 3:01 PMcatch (e: unknown) {
if (e instanceof Error && SuperTokensError.isErrorFromSuperTokens(e)) {
console.log('st error');
rp_st
04/10/2024, 3:02 PM