@coolgk/utils
Version:
javascript, typescript utility and wrapper functions and classes: array, string, base64, ampq, bcrypt, cache, captcha, csv, email, jwt, number, pdf, tmp, token, unit conversion, url params, session, form data, google sign in, facebook sign in
33 lines (31 loc) • 855 B
TypeScript
/*!
* @package @coolgk/utils
* @version 3.1.4
* @link https://github.com/coolgk/node-utils
* @license MIT
* @author Daniel Gong <daniel.k.gong@gmail.com>
*
* Copyright (c) 2017 Daniel Gong <daniel.k.gong@gmail.com>. All rights reserved.
* Licensed under the MIT License.
*/
/*!
* Copyright (c) 2017 Daniel Gong <daniel.k.gong@gmail.com>. All rights reserved.
* Licensed under the MIT License.
*/
export interface IOptions {
clientId: string;
secret: string;
get?: any;
}
export interface IAccountData {
[field: string]: any;
}
export declare class FacebookSignIn {
static readonly _RECAPTCHA_URL: string;
private _clientId;
private _secret;
private _getRequest;
constructor(options: IOptions);
verify(token: string, fields?: string): Promise<boolean | IAccountData>;
}
export default FacebookSignIn;