curtain-web-api 1.0.31 → 1.0.32
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.
|
@@ -186,6 +186,7 @@ class CurtainWebAPI {
|
|
|
186
186
|
headers["Content-Type"] = "application/json";
|
|
187
187
|
return this.axiosInstance.post(this.orcidLoginURL, JSON.stringify({ "auth_token": authorizationCode, "redirect_uri": redirectURI }), { headers: headers, responseType: "json" }).then((response) => {
|
|
188
188
|
return this.user.saveIntoDB(response.data.access, response.data.refresh).then((response) => {
|
|
189
|
+
console.log(this.user);
|
|
189
190
|
return this.getUserInfo();
|
|
190
191
|
});
|
|
191
192
|
});
|
package/package.json
CHANGED
|
@@ -169,7 +169,8 @@ export class CurtainWebAPI {
|
|
|
169
169
|
headers["Content-Type"] = "application/json";
|
|
170
170
|
return this.axiosInstance.post(this.orcidLoginURL, JSON.stringify({"auth_token": authorizationCode, "redirect_uri": redirectURI}), {headers: headers, responseType:"json"}).then((response) => {
|
|
171
171
|
return this.user.saveIntoDB(response.data.access, response.data.refresh).then((response) => {
|
|
172
|
-
|
|
172
|
+
console.log(this.user)
|
|
173
|
+
return this.getUserInfo()
|
|
173
174
|
})
|
|
174
175
|
})
|
|
175
176
|
}
|