UNPKG

@softr/sdk

Version:

The SDK for building Softr apps on TanStack Start. It lets an app interact with Softr: auth, datasources, workflows and integrations.

19 lines • 581 B
//#region src/auth/returnPath.d.ts /** * Where to send a visitor who just signed in: the path a guard sent them away * from, else where `auth.guard.alreadyAuthenticated` in softr.json points, else * `/`. Anything but a path on this app counts as missing. It always reloads the * page, so the router picks up the new session. * * @example * const location = useLocation() * navigate(toReturnPath(location)) */ declare function toReturnPath(location: { search: Record<string, unknown>; }): { href: string; reloadDocument: true; }; //#endregion export { toReturnPath };