Skip to main content
Module

x/apiland/auth.ts

The API server for deno.land
Latest
import * as apiland from "https://deno.land/x/apiland@1.7.2/auth.ts";

Load service account information from a .env if present and export the service account information for connecting to the Google Datastore.

Variables

Algolia credentials required to upload docNodes to algolia.

The service account keys used when connecting to the Google Datastore.

A promise that is resolved when auth keys are properly set. This allows for async resolution of environment variables.

Functions

Return an instance of the datastore configured to be authorized using the environmental configuration.

Return an instance of the s3 moderation bucket configured to be authorized using the environmental configuration.

Return an instance of the s3 bucket configured to be authorized using the environmental configuration.

Return an instance of the s3 moderation bucket configured to be authorized using the environmental configuration.

Load API tokens from the datastore.