@openfort/openfort-js 0.7.5 → 0.7.6

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/index.cjs CHANGED
@@ -5925,7 +5925,7 @@ class Openfort {
5925
5925
  const result = await this.backendApiClients.transactionIntentsApi.signature(request);
5926
5926
  return result.data;
5927
5927
  }
5928
- async signMessage(message) {
5928
+ async signMessage(message, options) {
5929
5929
  await this.recoverSigner();
5930
5930
  if (!this.signer) {
5931
5931
  throw new NoSignerConfigured('No signer configured');
@@ -5933,7 +5933,8 @@ class Openfort {
5933
5933
  if (this.signer.useCredentials()) {
5934
5934
  await this.validateAndRefreshToken();
5935
5935
  }
5936
- return await this.signer.sign(message, false, true);
5936
+ const { hashMessage = true, arrayifyMessage = false } = options || {};
5937
+ return await this.signer.sign(message, arrayifyMessage, hashMessage);
5937
5938
  }
5938
5939
  async signTypedData(domain, types, value) {
5939
5940
  await this.recoverSigner();
package/dist/index.d.ts CHANGED
@@ -100,7 +100,10 @@ declare class Openfort {
100
100
  authenticateWithSIWE(signature: string, message: string, walletClientType: string, connectorType: string): Promise<AuthResponse>;
101
101
  storeCredentials(auth: Auth): void;
102
102
  sendSignatureTransactionIntentRequest(transactionIntentId: string, userOperationHash?: string | null, signature?: string | null): Promise<TransactionIntentResponse$1>;
103
- signMessage(message: string | Uint8Array): Promise<string>;
103
+ signMessage(message: string | Uint8Array, options?: {
104
+ hashMessage?: boolean;
105
+ arrayifyMessage?: boolean;
106
+ }): Promise<string>;
104
107
  signTypedData(domain: TypedDataDomain, types: Record<string, Array<TypedDataField>>, value: Record<string, any>): Promise<string>;
105
108
  sendRegisterSessionRequest(sessionId: string, signature: string, optimistic?: boolean): Promise<SessionResponse$1>;
106
109
  private recoverSigner;
@@ -361,6 +364,7 @@ interface LinkedAccountResponse {
361
364
  'provider': AuthProvider;
362
365
  'email'?: string;
363
366
  'externalUserId'?: string;
367
+ 'verified'?: boolean;
364
368
  'disabled': boolean;
365
369
  'updatedAt'?: number;
366
370
  'address'?: string;
package/dist/index.js CHANGED
@@ -5902,7 +5902,7 @@ class Openfort {
5902
5902
  const result = await this.backendApiClients.transactionIntentsApi.signature(request);
5903
5903
  return result.data;
5904
5904
  }
5905
- async signMessage(message) {
5905
+ async signMessage(message, options) {
5906
5906
  await this.recoverSigner();
5907
5907
  if (!this.signer) {
5908
5908
  throw new NoSignerConfigured('No signer configured');
@@ -5910,7 +5910,8 @@ class Openfort {
5910
5910
  if (this.signer.useCredentials()) {
5911
5911
  await this.validateAndRefreshToken();
5912
5912
  }
5913
- return await this.signer.sign(message, false, true);
5913
+ const { hashMessage = true, arrayifyMessage = false } = options || {};
5914
+ return await this.signer.sign(message, arrayifyMessage, hashMessage);
5914
5915
  }
5915
5916
  async signTypedData(domain, types, value) {
5916
5917
  await this.recoverSigner();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfort/openfort-js",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "author": "Openfort (https://www.openfort.xyz)",
5
5
  "bugs": "https://github.com/openfort-xyz/openfort-js/issues",
6
6
  "repository": "openfort-xyz/openfort-js.git",