blade
Version:
React at the edge.
20 lines (18 loc) • 572 B
TypeScript
import { JWTPayload } from "blade/server/utils";
import { TriggerOptions } from "blade/types";
//#region ../blade-auth/dist/utils/index.d.ts
/**
* Retrieve the account that authored the incoming query.
*
* @param cookies - The list of cookies provided to the trigger.
*
* @returns The ID of the account that authored the incoming query.
*/
declare const getSessionCookie: (cookies: TriggerOptions["cookies"]) => Promise<JWTPayload>;
/**
* Generate pseudo-random unique identifiers.
*
* @returns A unique identifier.
*/
//#endregion
export { getSessionCookie };