@linktr.ee/create-link-app 2.2.2 → 2.2.3

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.
@@ -38,7 +38,8 @@ function isTokenValid(token) {
38
38
  exports.isTokenValid = isTokenValid;
39
39
  function saveAccessToken(tokenString) {
40
40
  const token = jsonwebtoken_1.default.decode(tokenString, { json: true });
41
- const audience = token?.aud;
41
+ const rawAudience = token?.aud;
42
+ const audience = Array.isArray(rawAudience) ? rawAudience[0] : rawAudience;
42
43
  if (audience && typeof audience === 'string') {
43
44
  netrc_parser_1.default.loadSync();
44
45
  netrc_parser_1.default.machines[audience] = {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.2.2",
2
+ "version": "2.2.3",
3
3
  "commands": {
4
4
  "build": {
5
5
  "id": "build",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/create-link-app",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "Create a Link App on Linktr.ee.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Linktree",