MCPcopy Create free account
hub / github.com/codecombat/codecombat / clearCookieConsent

Method clearCookieConsent

app/models/User.js:1014–1017  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1012 }
1013
1014 clearCookieConsent () {
1015 // Clear the cookie consent cookie so the next user on this device can make their own choice
1016 document.cookie = 'cookieconsent_status=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;'
1017 }
1018
1019 clearUserSpecificLocalStorage () {
1020 for (const key of ['hoc-campaign']) { storage.remove(key) }

Callers 1

logoutMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected