import { type OakResourceServerOptions } from "https://deno.land/x/oauth2_server@0.12.0/adapters/oak/resource_server.ts";
Properties
server: ResourceServer<Client, User, Scope>
The OAuth2 server.
The key for storing OAuth2 state on the context's state. Defaults to "oauth2".
optional
getAccessToken: (request: OakOAuth2Request<Client, User, Scope>) => Promise<string | null>Gets access token from request in a non standard way. If function is not set or it resolves to null, authenticate will check for access token in the authorization header or request body.