Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fathym_common/src/src.deps.ts>DenoKVOAuth.createAuth0OAuthConfig

The Fathym Reference Architecture provides the common foundation for applications built in Typescript.
Go to Latest
function DenoKVOAuth.createAuth0OAuthConfig
import { DenoKVOAuth } from "https://deno.land/x/fathym_common@v0.0.155/src/src.deps.ts";
const { createAuth0OAuthConfig } = DenoKVOAuth;

Returns the OAuth configuration for Auth0.

Requires --allow-env[=AUTH0_CLIENT_ID,AUTH0_CLIENT_SECRET,AUTH0_DOMAIN] permissions and environment variables:

  1. AUTH0_CLIENT_ID
  2. AUTH0_CLIENT_SECRET
  3. AUTH0_DOMAIN

Examples

Example 1

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

const oauthConfig = createAuth0OAuthConfig({
  redirectUri: "http://localhost:8000/callback",
  scope: "openid"
});

Parameters

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

Returns

OAuth2ClientConfig