Skip to main content
Module

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

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

Creates an OAuth2 client configuration.

Parameters

clientId: string

The client ID of your OAuth2 configruation.

clientSecret: string

The client secret of your OAuth2 configruation.

authorizationEndpointUri: string

The authorization endpoint URI of your OAuth2 configruation.

tokenUri: string

The token endpoint URI of your OAuth2 configruation.

scope: string[]

The name of the scopes you want to request.

Returns

DenoKVOAuth.OAuth2ClientConfig

The configured OAuth2 client configuration.