import { DenoKVOAuth } from "https://deno.land/x/fathym_common@v0.0.142/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
Example 1
import { getRequiredEnv } from "https://deno.land/x/deno_kv_oauth@$VERSION/mod.ts";
getRequiredEnv("HOME"); // Returns "/home/alice"