UNPKG

gdpr-consent

Version:

GDPR banner to comply with the European cookie law. Inspired by tarteaucitronjs.

23 lines (22 loc) 748 B
import { addScript } from "../utils/index.js"; export const signinwithgoogle = ((user) => { return { key: "signinwithgoogle", type: "other", name: "Sign In with Google", uri: "https://policies.google.com/technologies/cookies#types-of-cookies", needConsent: true, lazyConsent: true, cookies: [], js: function () { if (typeof user.signinwithgoogleMore === "function") { addScript("https://accounts.google.com/gsi/client", undefined, function () { user.signinwithgoogleMore(); }); } else { addScript("https://accounts.google.com/gsi/client"); } }, }; });