Skip to main content
Module

x/deno_kv_oauth/mod.ts>createNotionOAuthConfig

High-level OAuth 2.0 powered by Deno KV.
Go to Latest
function createNotionOAuthConfig
import { createNotionOAuthConfig } from "https://deno.land/x/deno_kv_oauth@v0.9.0/mod.ts";

Returns the OAuth configuration for Google.

Requires --allow-env[=NOTION_CLIENT_ID,NOTION_CLIENT_SECRET] permissions and environment variables:

  1. NOTION_CLIENT_ID
  2. NOTION_CLIENT_SECRET

Examples

Example 1

import { createNotionOAuthConfig } from "https://deno.land/x/deno_kv_oauth@$VERSION/mod.ts";

const oauthConfig = createNotionOAuthConfig();

Parameters

optional
config: { redirectUri?: string; scope?: string | string[]; }