Module

x/deno_kv_oauth/mod.ts>signIn

High-level OAuth 2.0 powered by Deno KV.
Latest
function signIn
import { signIn } from "https://dotland.deno.dev/x/deno_kv_oauth@v0.10.0/mod.ts";

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

Examples

Example 1

import { signIn, createGitHubOAuthConfig } from "https://deno.land/x/deno_kv_oauth@$VERSION/mod.ts";

const oauthConfig = createGitHubOAuthConfig();

export async function handleSignIn(request: Request) {
 return await signIn(request, oauthConfig);
}

Parameters

request: Request
oauthConfig: OAuth2ClientConfig
optional
options: SignInOptions
import signIn
import { signIn } from "https://dotland.deno.dev/x/deno_kv_oauth@v0.10.0/mod.ts";