Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/alosaur/src/security/authentication/jwt-bearer/mod.ts>JwtBearerScheme

Alosaur - Deno web framework with many decorators
Very Popular
Go to Latest
class JwtBearerScheme
import { JwtBearerScheme } from "https://deno.land/x/alosaur@v1.1.0/src/security/authentication/jwt-bearer/mod.ts";

Constructors

new
JwtBearerScheme(
algorithm: Algorithm,
key: CryptoKey,
expires?: number,
)

Methods

authenticate(context: SecurityContext): Promise<void>
signInAsync<I, R>(context: SecurityContext, identity: Identity<I>): Promise<R>
signOutAsync<T, R>(context: SecurityContext): Promise<R>