@tempoxyz/auth 0.0.0-pr-36.sha-7ec08bf → 0.0.0-pr-40.sha-2adbfd5

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/dist/Auth.d.ts CHANGED
@@ -49,7 +49,7 @@ export declare namespace RequestError {
49
49
  uri?: string | undefined;
50
50
  };
51
51
  /** Each refusal's stable name. `docs/errors.md` explains each one. */
52
- type Reason = 'already_decided' | 'approval_pending' | 'cross_site_request' | 'device_code_expired' | 'duplicate_limit' | 'empty_limits' | 'empty_scopes' | 'expiry_exceeds_maximum' | 'expiry_passed' | 'foreign_account' | 'foreign_origin' | 'invalid_chain' | 'invalid_code' | 'invalid_expiry' | 'invalid_field' | 'invalid_origin' | 'invalid_public_key' | 'limit_exceeds_maximum' | 'malformed_body' | 'missing_code_challenge' | 'missing_key' | 'missing_recipients' | 'periodic_limit' | 'polling_too_fast' | 'rejected' | 'request_denied' | 'scope_without_limit' | 'session_required' | 'unexpected' | 'unknown_code' | 'unknown_endpoint' | 'unsupported_call' | 'unsupported_step' | 'unsupported_token';
52
+ type Reason = 'already_decided' | 'body_too_large' | 'duplicate_limit' | 'empty_limits' | 'empty_scopes' | 'expiry_exceeds_maximum' | 'expiry_passed' | 'foreign_account' | 'invalid_chain' | 'invalid_code' | 'invalid_expiry' | 'invalid_field' | 'invalid_origin' | 'invalid_public_key' | 'limit_exceeds_maximum' | 'missing_code_challenge' | 'missing_key' | 'missing_recipients' | 'periodic_limit' | 'rejected' | 'scope_without_limit' | 'unknown_code' | 'unsupported_call' | 'unsupported_step' | 'unsupported_token';
53
53
  }
54
54
  /**
55
55
  * Creates a Tempo Auth instance.
package/dist/Key.js CHANGED
@@ -53,7 +53,9 @@ export function toAccount(key, options = {}) {
53
53
  const { accessKey } = options;
54
54
  const keyAuthorization = KeyAuthorization.fromRpc(key.keyAuthorization);
55
55
  const keyAuthorizationManager = KeyAuthorizationManager.memory();
56
- keyAuthorizationManager.set({
56
+ // The memory manager stores synchronously, so the authorization is in place before the account
57
+ // is returned.
58
+ void keyAuthorizationManager.set({
57
59
  accessKey: keyAuthorization.address,
58
60
  address: key.account,
59
61
  chainId: Number(keyAuthorization.chainId),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempoxyz/auth",
3
- "version": "0.0.0-pr-36.sha-7ec08bf",
3
+ "version": "0.0.0-pr-40.sha-2adbfd5",
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": {