@foxiko/client
Advanced tools
Comparing version 1.0.57 to 1.0.58
@@ -56,28 +56,18 @@ const {IDENTITY} = require("../Networking"); | ||
return null; | ||
// const data = await this.client.request() | ||
// .url(`${IDENTITY.SECURITY.TOKEN.REGISTER}`) | ||
// .body({ | ||
// client_id: credentials.clientId, | ||
// scope: credentials.scope, | ||
// access_token: credentials.token, | ||
// refresh_token: credentials.refreshToken, | ||
// token_type: credentials.tokenType, | ||
// expires: credentials.getExpiration(), | ||
// data: credentials.data, | ||
// }) | ||
// .responseType().json() | ||
// .send(); | ||
// if(data['valid'] === undefined) { | ||
// throw data['error']; | ||
// } | ||
// if(!data['valid']) { | ||
// return false; | ||
// } | ||
// return data['scope'].join(" "); | ||
} | ||
async _updateToken(credentials) { | ||
return null; | ||
} | ||
async _registerAuthorization(authorization) { | ||
return null; | ||
} | ||
async _updateAuthorization(authorization) { | ||
return null; | ||
} | ||
async _findToken(accessToken) { | ||
} | ||
async _findAuthorization(code) { | ||
} | ||
async _findRefreshToken(refreshToken) { | ||
@@ -112,2 +102,3 @@ | ||
findRefreshToken: (token) => this._findRefreshToken(token), | ||
findAuthorization: (code) => this._findAuthorization(code), | ||
}); | ||
@@ -117,2 +108,5 @@ this.client = client; | ||
this.on("new_access_token", credentials => this._registerToken(credentials)); | ||
this.on("update_access_token", credentials => this._updateToken(credentials)); | ||
this.on("new_authorization", authorzation => this._registerAuthorization(authorzation)); | ||
this.on("update_authorization", authorzation => this._updateAuthorization(authorzation)); | ||
} | ||
@@ -119,0 +113,0 @@ |
{ | ||
"name": "@foxiko/client", | ||
"version": "1.0.57", | ||
"version": "1.0.58", | ||
"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
175701
3541