steamutils 1.4.9 → 1.4.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +8 -0
  2. 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
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.4.09",
3
+ "version": "1.4.10",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",