UNPKG

wcz-layout

Version:

19 lines (18 loc) 835 B
import { t as QueryClientParam } from "./QueryClientParam-cJiA5WCd.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-B4ZYcVxH.d.mts.map