Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

verifyKeyMiddleware

Creates a middleware function for use in Express-compatible web servers.

function verifyKeyMiddleware(clientPublicKey: string): (
req: Request,
res: Response,
) => void
;
§
verifyKeyMiddleware(clientPublicKey: string): (
req: Request,
res: Response,
) => void
[src]

§Parameters

§
clientPublicKey: string
[src]
  • The public key from the Discord developer dashboard

§Return Type

§
(req: Request, res: Response, next: NextFunction) => void
[src]

The middleware function