/opt/canhelp/node_modules/better-auth/dist/plugins/jwt
NameSizeModeActions
adapter.mjs9150644editdlrm
adapter.mjs.map22250644editdlrm
client.d.mts10180644editdlrm
client.mjs4520644editdlrm
client.mjs.map13050644editdlrm
index.d.mts67920644editdlrm
index.mjs70680644editdlrm
index.mjs.map158510644editdlrm
schema.d.mts4720644editdlrm
schema.mjs3550644editdlrm
schema.mjs.map8250644editdlrm
sign.d.mts17070644editdlrm
sign.mjs27260644editdlrm
sign.mjs.map65610644editdlrm
types.d.mts59520644editdlrm
utils.d.mts12720644editdlrm
utils.mjs21400644editdlrm
utils.mjs.map38760644editdlrm
verify.d.mts4580644editdlrm
verify.mjs17010644editdlrm
verify.mjs.map33810644editdlrm
Edit: /opt/canhelp/node_modules/better-auth/dist/plugins/jwt/index.d.mts (6792B)
import { JWKOptions, JWSAlgorithms, Jwk, JwtOptions } from "./types.mjs"; import { getJwtToken, signJWT } from "./sign.mjs"; import { createJwk, generateExportedKeyPair, toExpJWT } from "./utils.mjs"; import { verifyJWT } from "./verify.mjs"; import * as _better_auth_core0 from "@better-auth/core"; import * as better_call0 from "better-call"; import * as z from "zod"; import { JSONWebKeySet, JWTPayload } from "jose"; //#region src/plugins/jwt/index.d.ts declare module "@better-auth/core" { interface BetterAuthPluginRegistry { jwt: { creator: typeof jwt; }; } } declare const jwt: (options?: O) => { id: "jwt"; options: NoInfer; endpoints: { getJwks: better_call0.StrictEndpoint; getToken: better_call0.StrictEndpoint<"/token", { method: "GET"; requireHeaders: true; use: ((inputContext: better_call0.MiddlewareInputContext) => Promise<{ session: { session: Record & { id: string; createdAt: Date; updatedAt: Date; userId: string; expiresAt: Date; token: string; ipAddress?: string | null | undefined; userAgent?: string | null | undefined; }; user: Record & { id: string; createdAt: Date; updatedAt: Date; email: string; emailVerified: boolean; name: string; image?: string | null | undefined; }; }; }>)[]; metadata: { openapi: { operationId: string; description: string; responses: { 200: { description: string; content: { "application/json": { schema: { type: "object"; properties: { token: { type: string; }; }; }; }; }; }; }; }; }; }, { token: string; }>; signJWT: better_call0.StrictEndpoint; overrideOptions: z.ZodOptional>; }, z.core.$strip>; }, { token: string; }>; verifyJWT: better_call0.StrictEndpoint; }, z.core.$strip>; }, { payload: (JWTPayload & Required>) | null; }>; }; hooks: { after: { matcher(context: _better_auth_core0.HookEndpointContext): boolean; handler: (inputContext: better_call0.MiddlewareInputContext) => Promise; }[]; }; schema: { jwks: { fields: { publicKey: { type: "string"; required: true; }; privateKey: { type: "string"; required: true; }; createdAt: { type: "date"; required: true; }; expiresAt: { type: "date"; required: false; }; }; }; }; }; //#endregion export { JWKOptions, JWSAlgorithms, Jwk, JwtOptions, createJwk, generateExportedKeyPair, getJwtToken, jwt, signJWT, toExpJWT, verifyJWT }; //# sourceMappingURL=index.d.mts.map