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
Go to Latest
class JwtBearerScheme
import { JwtBearerScheme } from "https://deno.land/x/alosaur@v0.33.0/src/security/authentication/jwt-bearer/mod.ts";

Constructors

new
JwtBearerScheme(
algorithm: Algorithm,
secret: string,
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>