@softr/sdk
Version:
The SDK for building Softr apps on TanStack Start. It lets an app interact with Softr: auth, datasources, workflows and integrations.
17 lines (15 loc) • 589 B
JavaScript
import { panic } from "../../assertions.js";
import { sessionConfig } from "../config.js";
import { makePlatform } from "../platform.js";
//#region src/auth/methods/settings.ts
/**
* How visitors may sign in and sign up to this app, as configured in Studio.
* A login or sign-up page renders only the methods it lists.
*/
async function settings() {
const result = await makePlatform(sessionConfig().applicationId).authSettings();
if (!result.ok) panic(`Expected the auth settings, but got ${result.status}: ${result.message}`);
return result.data;
}
//#endregion
export { settings };