Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
import * as fathymEverythingAsCode from "https://deno.land/x/fathym_everything_as_code@v0.0.374/src/src.deps.ts";

Utilities for base64 encoding and decoding.

This module is browser compatible.

Namespaces

Utilities for working with OS-specific file paths.

Classes

Error with extra properties to help with debugging

The status is a common object for passing more details back than standard boolean.

Functions

Returns the OAuth configuration for Auth0.

Returns the OAuth configuration for Azure.

Returns the OAuth configuration for Azure.

Returns the OAuth configuration for Discord.

Returns the OAuth configuration for Dropbox.

Returns the OAuth configuration for Facebook.

Returns the OAuth configuration for GitHub.

Returns the OAuth configuration for GitLab.

Returns the OAuth configuration for Google.

Creates the full set of helpers with the given OAuth configuration and options.

Returns the OAuth configuration for Notion.

Returns the OAuth configuration for Okta.

Returns the OAuth configuration for Patreon.

Returns the OAuth configuration for Slack.

Returns the OAuth configuration for Spotify.

Returns the OAuth configuration for Twitter.

Decodes a base64-encoded string.

Resolve a Promise after a given amount of milliseconds.

Takes Header, Payload and CryptoKey and returns the url-safe encoded jwt.

Takes a jwt and returns a 3-tuple [unknown, unknown, Uint8Array] if the jwt has a valid serialization. Otherwise it throws an Error. This function does not verify the digital signature.

This helper function simplifies setting a NumericDate. It takes either a Date object or a number (in seconds) and returns the number of seconds from 1970-01-01T00:00:00Z UTC until the specified UTC date/time.

It does not verify the digital signature.

Takes jwt, CryptoKey and VerifyOptions and returns the Payload of the jwt if the jwt is valid. Otherwise it throws an Error.

Converts data into a base64-encoded string.

Determine if a path exists.

Determine if a path exists sync.

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.

Gets the session ID from the cookie header of a request. This can be used to check whether the client is signed-in and whether the session ID was created on the server by checking if the return value is defined.

Handles the OAuth callback request for the given OAuth configuration, and then redirects the client to the success URL set in signIn. The request URL must match the redirect URL of the OAuth application.

Check to see if a status is successful (code 0).

Lowercase a string.

Return the last portion of a path. Trailing directory separators are ignored, and optional suffix is removed.

Determines the common path from a set of paths, using an optional separator, which defaults to the OS default separator.

Return the directory path of a path.

Return the extension of the path with leading period.

Generate a path from FormatInputPathObject object.

Converts a file URL to a path string.

Convert a glob string to a regular expression.

Verifies whether provided path is absolute

Test whether the given string is a glob

Join all given a sequence of paths,then normalizes the resulting path.

Like join(), but doesn't collapse "**/.." when globstar is true.

Normalize the path, resolving '..' and '.' segments. Note that resolving these segments does not necessarily mean that all will be eliminated. A '..' at the top-level will be preserved, and an empty path is canonically '.'.

Like normalize(), but doesn't collapse "**/.." when globstar is true.

Return a ParsedPath object of the path.

Return the relative path from from to to based on current working directory.

Resolves path segments into a path

Converts a path string to a file URL.

Resolves path to a namespace path

Handles the sign-in request and process for the given OAuth configuration and redirects the client to the authorization URL.

Handles the sign-out process, and then redirects the client to the given success URL.

Interfaces

WARNING this interface was too large to document.

Represents an HTTP Cookie.

Options for createHelpers.

JWS §4.1.1: The "alg" value is a case-sensitive ASCII string containing a StringOrURI value. This Header Parameter MUST be present and MUST be understood and processed by implementations.

JWT §1: JWTs encode claims to be transmitted as a JSON [RFC7159] object [...]. JWT §4.1: The following Claim Names are registered in the IANA "JSON Web Token Claims" registry established by Section 10.1. None of the claims defined below are intended to be mandatory to use or implement in all cases, but rather they provide a starting point for a set of useful, interoperable claims. Applications using JWTs should define which specific claims they use and when they are required or optional.

Options for getSessionId.

Options for handleCallback.

WARNING this interface was too large to document.

Options for globToRegExp.

A parsed path object generated by path.parse() or consumed by path.format().

Options for signIn.

Options for signOut.

Tokens and associated information received from a successful access token request.

Type Aliases

With expLeeway and nbfLeeway implementers may provide for some small leeway to account for clock skew (JWT §4.1.4). The default is 1 second. By passing the option audience, this application tries to identify the recipient with a value in the aud claim. If the values don't match, an Error is thrown.

Users SHOULD only enter repositoryIds || repositoryNames. However, this moduke still passes both to the backend API to let the API decide how to handle the logic. We just throw the reponse back to the client making the request.

WARNING this type alias was too large to document.