Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oauth2_server/examples/oak-localstorage/services/session.ts>SessionService

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
Latest
class SessionService
import { SessionService } from "https://deno.land/x/oauth2_server@0.12.0/examples/oak-localstorage/services/session.ts";

Constructors

new
SessionService(userService: UserService)

Properties

private
userService: UserService

Methods

private
getInternal(id: string): Promise<SessionInternal | undefined>
private
toExternal(internal: SessionInternal): Promise<Session>
delete(session: Session | string): Promise<boolean>
get(id: string): Promise<Session | undefined>
patch(session: Partial<Session> & Pick<Session, "id">): Promise<void>
put(session: Session): Promise<void>
start(id?: string): Promise<Session>