Updates
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
declare namespace _exports {
|
||||
export { GoogleGetAccessTokenFunctionParams };
|
||||
}
|
||||
declare function _exports(params: GoogleGetAccessTokenFunctionParams): Promise<boolean>;
|
||||
declare function _exports(params: GoogleGetAccessTokenFunctionParams): Promise<string>;
|
||||
export = _exports;
|
||||
type GoogleGetAccessTokenFunctionParams = {
|
||||
/**
|
||||
|
||||
@@ -22,11 +22,9 @@ let interval;
|
||||
*
|
||||
* @param {GoogleGetAccessTokenFunctionParams} params - Single object passed
|
||||
|
||||
* @returns {Promise<boolean>} - Return
|
||||
* @returns {Promise<string>} - Access Token String
|
||||
*/
|
||||
module.exports = async function getAccessToken(params) {
|
||||
/** @type {any} */
|
||||
|
||||
params.setLoading?.(true);
|
||||
|
||||
const response = await new Promise((resolve, reject) => {
|
||||
|
||||
Reference in New Issue
Block a user