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

JwtLocation

import type { JwtLocation } from "https://googleapis.deno.dev/v1/serviceconsumermanagement:v1.ts";

Specifies a location to extract JWT from an API request.

interface JwtLocation {
cookie?: string;
header?: string;
query?: string;
valuePrefix?: string;
}

§Properties

§
query?: string
[src]

Specifies URL query parameter name to extract JWT token.

§
valuePrefix?: string
[src]

The value prefix. The value format is "value_prefix{token}" Only applies to "in" header type. Must be empty for "in" query type. If not empty, the header value has to match (case sensitive) this prefix. If not matched, JWT will not be extracted. If matched, JWT will be extracted after the prefix is removed. For example, for "Authorization: Bearer {JWT}", value_prefix="Bearer " with a space at the end.