Skip to main content
Module

x/deno_kv_oauth/mod.ts

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

Functions

Deletes all OAuth 2.0 sessions and tokens stored in KV.

Creates an OAuth 2.0 client with Auth0 as the provider.

Creates an OAuth 2.0 client with Discord as the provider.

Creates an OAuth 2.0 client with Dropbox as the provider.

Creates an OAuth 2.0 client with Facebook as the provider.

Creates an OAuth 2.0 client with GitHub as the provider.

Creates an OAuth 2.0 client with GitLab as the provider.

Creates an OAuth 2.0 client with Google as the provider.

Creates an OAuth 2.0 client with Notion as the provider.

Creates an OAuth 2.0 client with Okta as the provider.

Creates an OAuth 2.0 client with Patreon as the provider.

Creates an OAuth 2.0 client with Slack as the provider.

Creates an OAuth 2.0 client with Spotify as the provider.

Creates an OAuth 2.0 client with Twitter as the provider.

Gets the access token for a given OAuth 2.0 client and session. If null is returned, the client must sign in.

Gets the session ID for a given request. This is well-suited for checking whether the client is signed in by checking if undefined.

Handles the OAuth 2.0 callback request for a given OAuth 2.0 client, and then redirects the client to the success URL set in signIn.

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

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