import { OAuthAuthCode } from "../entities/auth_code.entity" ; import { OAuthClient } from "../entities/client.entity" ; import { OAuthScope } from "../entities/scope.entity" ; import { OAuthUser } from "../entities/user.entity" ; export interface OAuthAuthCodeRepository { getByIdentifier ( authCodeCode ) : Promise < OAuthAuthCode > ; issueAuthCode ( client , user , scopes ) : OAuthAuthCode | Promise < OAuthAuthCode > ; persist ( authCode ) : Promise < void > ; isRevoked ( authCodeCode ) : Promise < boolean > ; revoke ( authCodeCode ) : Promise < void > ; }