Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fathym_common/src/deno.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.176/src/deno.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