UNPKG

gdpr-consent

Version:

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

23 lines (22 loc) 820 B
import { addScript } from "../utils/index.js"; export const signinwithapple = ((user) => { return { key: "signinwithapple", type: "other", name: "Sign In with Apple", uri: "https://www.apple.com/legal/privacy/en-ww/cookies/", needConsent: true, lazyConsent: true, cookies: [], js: function () { if (typeof user.signinwithappleMore === "function") { addScript("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js", undefined, function () { user.signinwithappleMore(); }); } else { addScript("https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"); } }, }; });