Skip to main content
Module

x/fathym_common/src/oauth/oAuthRequest.ts>oAuthRequest

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Go to Latest
function oAuthRequest
import { oAuthRequest } from "https://deno.land/x/fathym_common@v0.2.147-integration/src/oauth/oAuthRequest.ts";

The OAuth request handler.

Parameters

req: Request

The request to handle.

oAuthConfig: DenoKVOAuth.OAuth2ClientConfig

The OAuth2 client configuration.

completeCallback: (
tokens: DenoKVOAuth.Tokens,
newSessionId: string,
oldSessionId?: string,
) => Promise<void>

The callback to be called when the request is complete.

root: string

The root URL of the application.

path: string

The path of the OAuth request.

Returns

Promise<Response>

The Oauth response to the request.