steamutils 1.4.9 → 1.4.10
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/index.js +8 -0
- package/package.json +1 -1
package/index.js
CHANGED
@@ -7267,6 +7267,14 @@ export default class SteamUser {
|
|
7267
7267
|
},
|
7268
7268
|
};
|
7269
7269
|
}
|
7270
|
+
|
7271
|
+
async hasToken(accessToken, tokenId) {
|
7272
|
+
const tokens = (await this.enumerateTokens(accessToken))?.response?.refresh_tokens;
|
7273
|
+
if (!Array.isArray(tokens) || !tokens.length) {
|
7274
|
+
return null;
|
7275
|
+
}
|
7276
|
+
return tokens.some((token) => token.token_id == tokenId);
|
7277
|
+
}
|
7270
7278
|
async queryRefreshTokenByID(accessToken, tokenId) {
|
7271
7279
|
const Protos = helpers([
|
7272
7280
|
{
|