@schibsted/account-sdk-browser 5.1.0 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schibsted/account-sdk-browser",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "description": "Schibsted account SDK for browsers",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/src/identity.js CHANGED
@@ -589,7 +589,7 @@ export class Identity extends EventEmitter {
589
589
  }
590
590
  let sessionData = null;
591
591
  try {
592
- sessionData = await this._sessionService.get('/v2/session', {tabId: this._getTabId()});
592
+ sessionData = await this._sessionService.get('v2/session', {tabId: this._getTabId()});
593
593
  } catch (err) {
594
594
  if (err && err.code === 400 && this._enableSessionCaching) {
595
595
  const expiresIn = 1000 * (err.expiresIn || 300);
@@ -827,7 +827,7 @@ export class Identity extends EventEmitter {
827
827
  */
828
828
  async getUserContextData() {
829
829
  try {
830
- return await this._globalSessionService.get('/user-context');
830
+ return await this._globalSessionService.get('user-context');
831
831
  } catch (_) {
832
832
  return null;
833
833
  }
package/src/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Automatically generated in 'npm version' by scripts/genversion.js
2
2
 
3
3
  'use strict'
4
- const version = '5.1.0';
4
+ const version = '5.1.1';
5
5
  export default version;