Back to Changelog

Released

ImprovementSDKs

JavaScript Web SDK 1.6.0

Choose where the signed-in user is kept for shared computers, update user properties, check for a confirmed identity, renew expired signatures, and see what the SDK sends. Calls made before init are no longer lost.

The new userStorage setting chooses where the Web SDK keeps the signed-in user. 'local' (the default) keeps them in localStorage as before. 'session' keeps them only as long as the browser tab, for sites whose own login ends with the tab, such as net banking on shared computers. 'memory' writes nothing about the user to the browser. persistUserAcrossRestarts: false, the setting the mobile SDKs use, works as a shortcut for 'session'.

setUserProperties() updates the signed-in user's properties, and isIdentified() tells you whether a user is identified. A repeat identifyUser() for the same user and traits is no longer sent again. The new onSignatureExpired callback tells your page when a secure-identification signature has expired, so it can fetch a fresh one and identify again. The onRequest and onResponse hooks report each request and its outcome while you develop.

Calls such as identifyUser() or startSession() made before init() are no longer lost: the SDK runs them in order once it has loaded. resetUser() and clearAll() now remove every saved user. See the JavaScript Web SDK docs.