datasquirel/client/auth/google/getAccessToken.d.ts

20 lines
648 B
TypeScript
Raw Permalink Normal View History

2024-12-08 08:58:57 +00:00
declare namespace _exports {
export { GoogleGetAccessTokenFunctionParams };
}
2024-12-10 18:27:08 +00:00
declare function _exports(params: GoogleGetAccessTokenFunctionParams): Promise<string>;
2024-11-08 15:44:31 +00:00
export = _exports;
2024-12-08 08:58:57 +00:00
type GoogleGetAccessTokenFunctionParams = {
/**
* - Google app client ID: {@link https://datasquirel.com/docs}
*/
clientId: string;
/**
* - Whether to trigger Google signing popup or not: {@link https://datasquirel.com/docs}
*/
triggerPrompt?: boolean;
/**
* - React setState Function: sets whether the google login button is ready or not
*/
setLoading?: React.Dispatch<React.SetStateAction<boolean>>;
};