maxrm13
// eslint-disable-next-line @typescript-eslint/no-explicit-any } catch (e: any) { if (e.isSuperTokensGeneralError) { ...
rp_st
import { Error as SuperTokensError } from "supertokens-node"; try { .... } catch (err: Error) { if (SuperTokensError.isErrorFromSuperTokens(err)) { //.. } }
catch (e: unknown) { if (e instanceof Error && SuperTokensError.isErrorFromSuperTokens(e)) { console.log('st error');
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).