Skip to main content
Module

x/deno_kv_oauth/mod.ts

High-level OAuth 2.0 powered by Deno KV.
Latest
import * as denoKvOauth from "https://deno.land/x/deno_kv_oauth@v0.10.0/mod.ts";

Functions

Returns the OAuth configuration for Auth0.

Returns the OAuth configuration for Discord.

Returns the OAuth configuration for Dropbox.

Returns the OAuth configuration for Facebook.

Returns the OAuth configuration for Facebook.

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 Google.

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.

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.

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.