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

x/oauth2_server/examples/oak-localstorage/services/user.ts>UserService

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

Constructors

new
UserService()

Methods

private
getInternal(id: string): Promise<UserInternal | undefined>
private
toExternal(internal: UserInternal): Promise<User>
create(user: Omit<User, "id">): Promise<void>
delete(user: User | string): Promise<boolean>
get(id: string): Promise<User | undefined>
getAuthenticated(username: string, password: string): Promise<User | undefined>
patch(user: Partial<User> & Pick<User, "id">): Promise<void>
put(user: User): Promise<void>