import { AbstractAuthorizationCodeService } from "https://deno.land/x/oauth2_server@0.12.0/services/authorization_code.ts";
Methods
Gets the date that a new authorization code would expire at.
generateCode(): Promise<string>
Generates an authorization code.
abstract
get(code: string): Promise<AuthorizationCode<Client, User, Scope> | undefined>Retrieves an existing authorization code.
abstract
revoke(authorizationCode: AuthorizationCode<Client, User, Scope> | string): Promise<boolean>Revokes an authorization code.
abstract
save(authorizationCode: AuthorizationCode<Client, User, Scope>): Promise<AuthorizationCode<Client, User, Scope>>Saves an authorization code.