wcz-layout
Version:
16 lines • 832 B
text/typescript
import { t as QueryClientParam } from "./QueryClientParam-Cbb0MIKg.mjs";
import { t as User } from "./User-1gKoYJvW.mjs";
import { scopes } from "virtual:wcz-layout";
//#region src/lib/auth/user.d.ts
declare const getUser: ({ queryClient }: QueryClientParam) => Promise<User | null>;
/**
* Server-only token acquisition: a delegated access token for the given API
* scope, minted from the user's session refresh token. Entra rotates the refresh
* token on each use, so the rotated token is persisted back to the session. Use
* inside server functions and middleware — it is stripped from the client bundle
* and throws if called there.
*/
declare const getAccessToken: (scopeKey: keyof typeof scopes) => Promise<string>;
//#endregion
export { getUser as n, getAccessToken as t };
//# sourceMappingURL=user-Dzv0N9fj.d.mts.map