UNPKG

@txstate-mws/graphql-server

Version:

A simple graphql server designed to work with typegraphql.

14 lines (13 loc) 554 B
import { type FastifyRequest } from 'fastify'; import { type KeyLike } from 'jose'; import { type GQLRequest } from './server'; export declare function composeQueryDigest(clientId: string, query: string): string; export declare class QueryDigest { protected static jwtQueryPublicKey: KeyLike; jwtToken?: string; clientQueryDigest?: string; constructor(req: FastifyRequest<GQLRequest>); static init(): void; tokenFromReq(req: FastifyRequest<GQLRequest>): string | undefined; getVerifiedDigest(): Promise<string | undefined>; }