@softr/sdk
Version:
The SDK for building Softr apps on TanStack Start. It lets an app interact with Softr: auth, datasources, workflows and integrations.
48 lines (46 loc) • 2.26 kB
TypeScript
import { confirmAuthenticatorSetup, removeAuthenticator, resetAuthenticator, sendAuthenticatorResetCode, skipAuthenticatorSetup, startAuthenticatorSetup, verifyAuthenticator } from "./methods/authenticator.js";
import { sendSignInCode, signInWithCode } from "./methods/code.js";
import { resendEmailCode, verifyEmailCode } from "./methods/emailCode2fa.js";
import { signInWithMagicLink } from "./methods/magicLink.js";
import { signIn, signOut } from "./methods/password.js";
import { checkPasswordLink, requestPasswordReset, setPasswordWithLink } from "./methods/passwordLink.js";
import { settings } from "./methods/settings.js";
import { discoverSso } from "./methods/sso.js";
import { confirmSignUp, signUp } from "./methods/signup.js";
import { signInWithGoogle } from "./methods/social.js";
import { removeAvatar, updateProfile } from "./methods/profile.js";
import { currentUserRow } from "./current-user-row.js";
import "@tanstack/react-start/server-only";
//#region src/auth/server.d.ts
/**
* Server-only auth methods, should be called from the app's own `createServerFn` handlers.
*/
declare const auth: {
signIn: typeof signIn;
signOut: typeof signOut;
signUp: typeof signUp;
confirmSignUp: typeof confirmSignUp;
sendSignInCode: typeof sendSignInCode;
signInWithCode: typeof signInWithCode;
signInWithGoogle: typeof signInWithGoogle;
signInWithMagicLink: typeof signInWithMagicLink;
discoverSso: typeof discoverSso;
requestPasswordReset: typeof requestPasswordReset;
checkPasswordLink: typeof checkPasswordLink;
setPasswordWithLink: typeof setPasswordWithLink;
startAuthenticatorSetup: typeof startAuthenticatorSetup;
confirmAuthenticatorSetup: typeof confirmAuthenticatorSetup;
skipAuthenticatorSetup: typeof skipAuthenticatorSetup;
verifyAuthenticator: typeof verifyAuthenticator;
sendAuthenticatorResetCode: typeof sendAuthenticatorResetCode;
resetAuthenticator: typeof resetAuthenticator;
removeAuthenticator: typeof removeAuthenticator;
verifyEmailCode: typeof verifyEmailCode;
resendEmailCode: typeof resendEmailCode;
settings: typeof settings;
updateProfile: typeof updateProfile;
removeAvatar: typeof removeAvatar;
currentUserRow: typeof currentUserRow;
};
//#endregion
export { auth };