Skip to main content
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@v0.26.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>