@schibsted/account-sdk-browser
Advanced tools
Changelog
v3.0.0-rc.20 (2018-10-09)
SP_ID
cookie) will now be done with a top-level domain as the
domain value. So if done from some.sub.site.example, we will use domain=site.example
. Thanks to
@olekenneth for fixing itChangelog
v3.0.0-rc.19 (2018-09-28)
Identity.hasSession
will not return the obsolete
userStatus
or id
fields (the numeric userId
and the uuid
fields are still returned).Identity.hasSession
multiple times will now cause only one network call. While this call
is running, other calls to Identity.hasSession
will simply wait for that call to complete, and
then they will all resolve to the same resultIdentity.hasSession
,
Monetization.hasProduct
and Monetization.hasSubscription
(quick howto; to opt into this, add a
param sessionDomain: 'https://id.site.example'
to the constructor for Identity and Monetization)Changelog
v3.0.0-rc.18 (2018-09-18 — second one today, yay 🎉)
Identity.logout()
function is no longer an async
function, and now does a full-page
redirect to the Schibsted account domain to log the user out. This is because we can't trust that
the XHR way of logging people out will work for Safari 12 users. Sorry for the breaking change,
but at least it works in a consistent way. It now also takes a parameter redirectUri
that
defaults to the redirectUri
from the Identity
constructor. The browser will be redirected
there after Schibsted account has logged the user outChangelog
v3.0.0-rc.17 (2018-09-18)
Identity.enableVarnishCookie()
, and 2) The varnish cookie was not removed correctly when calling
Identity.logout()
.Changelog
v3.0.0-rc.16 (2018-09-14)