UNPKG

@expressive-analytics/deep-thought-authentication

Version:

Typescript conversion of Deep Thought Authentication

26 lines (25 loc) 721 B
import { DTModel } from '@expressive-analytics/deep-thought-js'; export declare class DTOAuthTokenModel extends DTModel { protected static _strict_properties: boolean; protected static $T: string; type: number; status: number; _token?: any; protected _secret: any; protected consumer_id: any; user_id: any; authorized_at: any; oauth_callback: any; updateToAccessToken(db: any): void; generateToken(): any; /** * if we don't have a token, we should generate one */ token(): () => any; /** * if we don't have a secret, we should generate one */ secret(): () => any; authorize(db: any, user_id: any): void; invalidate(db: any): void; }