spookvooper-api/typings/modules/Auth.d.ts

19 lines
537 B
TypeScript
Raw Normal View History

2020-12-14 00:33:21 +00:00
import { AuthConfig } from './types/Types'
2020-12-14 00:33:21 +00:00
declare class Auth {
private readonly appsecret
private readonly code
private readonly appid
urlReturn: string
constructor (config: AuthConfig);
get clientsecret (): string;
set clientsecret (clientsecret: string);
get authcode (): string;
set authcode (authcode: string);
get clientid (): string;
set clientid (clientid: string);
genLink (redirect: string, scope: string, state?: string): string;
requestToken (redirect: string): Promise<any>;
}
export default Auth