UNPKG

@clerk/shared

Version:

Internal package utils used by the Clerk SDKs

21 lines 613 B
import { JwtPayload } from "./types/jwtv2.mjs"; import { SharedSignedInAuthObjectProperties } from "./types/authObject.mjs"; //#region src/jwtPayloadParser.d.ts declare const parsePermissions: ({ per, fpm }: { per?: string; fpm?: string; }) => { permissions: string[]; featurePermissionMap: number[][]; }; /** * Resolves the signed-in auth state from JWT claims. * * @experimental */ declare const __experimental_JWTPayloadToAuthObjectProperties: (claims: JwtPayload) => SharedSignedInAuthObjectProperties; //#endregion export { __experimental_JWTPayloadToAuthObjectProperties, parsePermissions };