1
2
3
4
5
6
7
8
export const googleClient = async () => {
const { google } = await import("npm:googleapis");
const key = { client_id: "test", client_secret: "test" };
const client = new google.auth.OAuth2(key.client_id, key.client_secret, [
"https://example.com",
]);
return client;
};
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023