@softr/sdk
Version:
The SDK for building Softr apps on TanStack Start. It lets an app interact with Softr: auth, datasources, workflows and integrations.
15 lines • 488 B
TypeScript
//#region src/auth/methods/utils.d.ts
type Result<T, E = Error> = {
success: false;
error: E;
} | {
success: true;
data: T;
};
type AuthError = {
code: AuthErrorCode;
message: string;
};
type AuthErrorCode = "invalidCredentials" | "tooManyAttempts" | "emailTaken" | "invalidDetails" | "invalidCode" | "notAuthenticated" | "emailDomainNotAllowed" | "linkExpired" | "invalidName" | "fileTooLarge" | "notAnImage" | "avatarNotSupported";
//#endregion
export { AuthError, Result };