@explorins/pers-signer 1.0.6 → 1.0.8

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.
@@ -424,11 +424,6 @@ interface SigningResult$1 {
424
424
  transactionHash?: string;
425
425
  rawTransaction?: string;
426
426
  }
427
- /**
428
- * Environment variable types for shared services
429
- */
430
- interface SharedLibEnvironment {
431
- }
432
427
  /**
433
428
  * Service configuration options
434
429
  */
@@ -1207,4 +1202,4 @@ declare function createSigningService(): Promise<SigningService>;
1207
1202
  declare function createPersSignerSDK(config: Omit<PersSignerConfig, 'webAuthnProvider'>): Promise<PersSignerSDK>;
1208
1203
 
1209
1204
  export { AuthenticationService, FetchHttpClient, KeyWallet, PersService, PersSignerSDK, ReactNativeConfigProvider, SIGNABLE_STATUSES, SigningService, StaticConfigProvider, TransactionErrorHandler, TransactionSigningErrorCode, TransactionSigningService, TransactionSubmissionHandler, TransactionValidator, WalletService, WebAuthnCoordinator, WebConfigProvider, createAuthenticationService, createPersSignerSDK, createSearchParamLogger, createSearchString, createSigningService, createUrlWithSearchParams, generateAnonymousUsername, generateGuestUsername, generateUUID, getAllSearchParams, getConfigProvider, getHttpClient, getSearchParam, getServiceConfig, getReactNativeWebAuthnProvider as getWebAuthnProvider, initTenantAnalytics, logSearchParams, mergeSearchParams, removeSearchParam, setConfigProvider, setHttpClient, updateSearchParam };
1210
- export type { ApiResponse, AuthResponse, AuthState, AuthToken, AuthenticationResult, CombinedTransactionStatus, ConfigProvider, HashSigningRequest, HttpClient, HttpRequestOptions, HttpResponse, JWTExtractionResult, JWTPayload, WalletItem$1 as KeyWalletItem, WalletListResponse$1 as KeyWalletListResponse, PersAuthResult, PersSignerConfig, PreparedTransaction, RegistrationChallenge, RegistrationResult, RelyingPartyConfig, ServiceConfig$1 as ServiceConfig, ServiceError, SharedLibEnvironment, SignResponse, SignerAuthenticatedUser, SignerUserInfo, SigningAuthTokens, SigningChallenge, SigningRequest, SigningResult$1 as SigningResult, StoredTransactionResult, SubmissionResult, TenantConfig, TransactionMetadata, TransactionSigningError, TransactionSigningParams, TransactionSigningResult, TransactionStatusInfo, TypedDataSigningRequest, UserCredentials, UserProfile, WalletConfig, WalletItem, WalletListResponse, WebAuthnConfig, WebAuthnProvider };
1205
+ export type { ApiResponse, AuthResponse, AuthState, AuthToken, AuthenticationResult, CombinedTransactionStatus, ConfigProvider, HashSigningRequest, HttpClient, HttpRequestOptions, HttpResponse, JWTExtractionResult, JWTPayload, WalletItem$1 as KeyWalletItem, WalletListResponse$1 as KeyWalletListResponse, PersAuthResult, PersSignerConfig, PreparedTransaction, RegistrationChallenge, RegistrationResult, RelyingPartyConfig, ServiceConfig$1 as ServiceConfig, ServiceError, SignResponse, SignerAuthenticatedUser, SignerUserInfo, SigningAuthTokens, SigningChallenge, SigningRequest, SigningResult$1 as SigningResult, StoredTransactionResult, SubmissionResult, TenantConfig, TransactionMetadata, TransactionSigningError, TransactionSigningParams, TransactionSigningResult, TransactionStatusInfo, TypedDataSigningRequest, UserCredentials, UserProfile, WalletConfig, WalletItem, WalletListResponse, WebAuthnConfig, WebAuthnProvider };
@@ -252,7 +252,8 @@ const SIGNER_CONFIG = {
252
252
  * Default relying party name for WebAuthn operations
253
253
  * This appears in the browser's authentication prompts
254
254
  */
255
- DEFAULT_RELYING_PARTY_NAME: 'PERS Signer'};
255
+ DEFAULT_RELYING_PARTY_NAME: 'PERS Signer',
256
+ DEFAULT_RELYING_PARTY_ID: 'signer.pers.ninja'};
256
257
 
257
258
  /**
258
259
  * Get PERS API base URL with staging option
@@ -2271,8 +2272,8 @@ class DfnsReactNativeWebAuthnProvider {
2271
2272
  async function getReactNativeWebAuthnProvider() {
2272
2273
  const config = {
2273
2274
  relyingParty: {
2274
- id: 'pers.ninja',
2275
- name: 'PERS Blockchain Signer',
2275
+ id: SIGNER_CONFIG.DEFAULT_RELYING_PARTY_ID,
2276
+ name: SIGNER_CONFIG.DEFAULT_RELYING_PARTY_NAME,
2276
2277
  }
2277
2278
  };
2278
2279
  return new DfnsReactNativeWebAuthnProvider(config);
@@ -11838,9 +11839,9 @@ class DfnsBrowserWebAuthnProvider {
11838
11839
  async function getBrowserWebAuthnProvider() {
11839
11840
  const config = {
11840
11841
  relyingParty: {
11841
- id: typeof window !== 'undefined' ? window.location.hostname : 'pers.ninja',
11842
- name: 'PERS Blockchain Signer',
11843
- origin: typeof window !== 'undefined' ? window.location.origin : 'https://pers.ninja',
11842
+ id: typeof window !== 'undefined' ? window.location.hostname : SIGNER_CONFIG.DEFAULT_RELYING_PARTY_ID,
11843
+ name: SIGNER_CONFIG.DEFAULT_RELYING_PARTY_NAME,
11844
+ origin: typeof window !== 'undefined' ? window.location.origin : SIGNER_CONFIG.DEFAULT_RELYING_PARTY_ID,
11844
11845
  }
11845
11846
  };
11846
11847
  return new DfnsBrowserWebAuthnProvider(config);