steamutils 1.4.9 → 1.4.10
Sign up to get free protection for your applications and to get access to all the features.
- 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
|
{
|