import { TokenService } from "https://deno.land/x/oauth2_server@0.12.0/examples/oak-localstorage/services/token.ts";
Constructors
new
TokenService(clientService: ClientService, userService: UserService)Properties
private
clientService: ClientServiceprivate
userService: UserServiceMethods
private
getTokenByIndex(tokenIndex: string): Promise<Token<Client, User, Scope> | undefined>private
getTokenInternalByIndex(tokenIndex: string): Promise<TokenInternal>deleteAccessToken(accessToken: string): Promise<boolean>
deleteRefreshToken(refreshToken: string): Promise<boolean>
getRefreshToken(refreshToken: string): Promise<RefreshToken<Client, User, Scope> | undefined>
revoke(token: string, hint?: string | null): Promise<boolean>
revokeCode(code: string): Promise<boolean>