@expressive-analytics/deep-thought-authentication
Version:
Typescript conversion of Deep Thought Authentication
10 lines (9 loc) • 476 B
TypeScript
import { DTAuthenticationService } from './DTAuthenticationService';
import { DTUserModel } from './DTUser';
import { DTOAuthTokenModel } from './DTOAuthToken';
export declare class DTOAuth2AuthenticationService extends DTAuthenticationService {
$model: typeof DTUserModel;
/** performs standard authentication, authorizing the relevant token if necessary */
actionAuthenticate(): DTUserModel;
authorizeToken(token: DTOAuthTokenModel, u: DTUserModel): void;
}