@foxiko/client
Advanced tools
Comparing version 1.0.87 to 1.0.88
@@ -79,3 +79,3 @@ const {OAuthCredentials} = require("@foxiko/oauth/OAuthServer"); | ||
credentials.scope = result.scope; | ||
credentials.expires = result.expires; | ||
credentials.expires = new Date(result.expires); | ||
credentials.token = result.token; | ||
@@ -93,3 +93,18 @@ credentials.tokenType = result.token_type; | ||
async _findRefreshToken(refreshToken) { | ||
const result = await this.handler.findRefreshToken(refreshToken); | ||
const credentials = new OAuthCredentials({ | ||
client_id: result.client.client_id, | ||
client_secret: null, | ||
data: result.client, | ||
request_data: {}, | ||
scope: result.scope.join(" "), | ||
handler: this, | ||
announce: false | ||
}); | ||
credentials.scope = result.scope; | ||
credentials.expires = new Date(result.expires); | ||
credentials.token = result.token; | ||
credentials.tokenType = result.token_type; | ||
credentials.refreshToken = result.refresh_token; | ||
return credentials; | ||
} | ||
@@ -96,0 +111,0 @@ |
{ | ||
"name": "@foxiko/client", | ||
"version": "1.0.87", | ||
"version": "1.0.88", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "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
185846
3839