@tempoxyz/auth 0.0.0-pr-102.sha-7573c8f → 0.0.0-pr-102.sha-c8a03d9

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.
@@ -67,7 +67,7 @@ export async function token(auth, body) {
67
67
  ...body,
68
68
  client_id: auth.clientId,
69
69
  ...(auth.clientSecret ? { client_secret: auth.clientSecret } : {}),
70
- ...(auth.resource ? { resource: auth.resource } : {}),
70
+ ...(auth.resource === undefined ? {} : { resource: auth.resource }),
71
71
  }),
72
72
  method: 'POST',
73
73
  }));
@@ -29,7 +29,7 @@ export function request(auth, options) {
29
29
  scopes: permissions.scopes,
30
30
  },
31
31
  redirect_uri: auth.redirectUri ?? `${globalThis.location?.origin ?? auth.url}/`,
32
- ...(auth.resource ? { resource: auth.resource } : {}),
32
+ ...(auth.resource === undefined ? {} : { resource: auth.resource }),
33
33
  scope: auth.scope,
34
34
  };
35
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempoxyz/auth",
3
- "version": "0.0.0-pr-102.sha-7573c8f",
3
+ "version": "0.0.0-pr-102.sha-c8a03d9",
4
4
  "description": "Signs users in to Tempo through Tempo Auth, and returns Viem access key accounts on their Tempo Accounts.",
5
5
  "type": "module",
6
6
  "exports": {