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

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

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

Returns the environment variable with the given key after ensuring that it's been set in the current process. This can be used when defining a custom OAuth configuration.

Examples

Example 1

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

getRequiredEnv("HOME"); // Returns "/home/alice"

Parameters

key: string

Returns

string