react-cimpress-fulfiller-logo
Advanced tools
Comparing version 0.0.13 to 0.0.14
@@ -88,3 +88,8 @@ 'use strict'; | ||
let url = `https://fulfilleridentity.trdlnk.cimpress.io/v1/fulfillers/${this.state.fulfillerId}/logo`; | ||
try { | ||
let cacheSuffix = this.props.accessToken ? JSON.parse(atob(this.props.accessToken.split('.')[1])).sub : null; | ||
url += `?user=${cacheSuffix}`; | ||
} catch (err) { | ||
console.log("Unable to extract sub from the token"); | ||
} | ||
fetch(url, init).then(response => { | ||
@@ -91,0 +96,0 @@ if (response.status === 200) { |
{ | ||
"name": "react-cimpress-fulfiller-logo", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "Fetches fulfiller logo from Fulfiller Identity Service.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8278
145