+1
-1
@@ -193,3 +193,3 @@ 'use strict'; | ||
| // console.log("Success: Constructed challenge from string and verified it is well-formed."); | ||
| const currDate = new Date(); | ||
| const currDate = new Date(options?.verificationTimeOverride ?? Date.now()); | ||
| verificationData.verificationTime = currDate; | ||
@@ -196,0 +196,0 @@ const skipTimestampVerification = options?.skipTimestampVerification ?? false; |
+1
-1
@@ -191,3 +191,3 @@ function convertAssetConditionGroup(item, convertFunction, populateDefaults) { | ||
| // console.log("Success: Constructed challenge from string and verified it is well-formed."); | ||
| const currDate = new Date(); | ||
| const currDate = new Date(options?.verificationTimeOverride ?? Date.now()); | ||
| verificationData.verificationTime = currDate; | ||
@@ -194,0 +194,0 @@ const skipTimestampVerification = options?.skipTimestampVerification ?? false; |
@@ -79,2 +79,6 @@ export type NumberType = string | bigint | number; | ||
| /** | ||
| * If true, we will use this timestamp instead of the current time. UNIX milliseconds. This is useful for verifying challenges that are expected to be verified at a future time. | ||
| */ | ||
| verificationTimeOverride?: number; | ||
| /** | ||
| * If true, we do not check timestamps (expirationDate / notBefore). This is useful if you are verifying a challenge that is expected to be verified at a future time. | ||
@@ -81,0 +85,0 @@ */ |
| import React, { ButtonHTMLAttributes } from 'react'; | ||
| import { ChallengeParams, NumberType, VerifyChallengeOptions } from '../../types/verify.types'; | ||
| import { AssetConditionGroup, NumberType } from '../../types/verify.types'; | ||
| export interface CodeGenQueryParams { | ||
| ownershipRequirements?: AssetConditionGroup<NumberType>; | ||
| expectVerifySuccess?: boolean; | ||
| name?: string; | ||
| description?: string; | ||
| image?: string; | ||
| otherSignIns?: ('discord' | 'twitter' | 'github' | 'google')[]; | ||
| redirect_uri?: string; | ||
| client_id: string; | ||
| state?: string; | ||
| expectAttestationsPresentations?: boolean; | ||
| } | ||
| export declare const SignInWithBitBadgesButton: React.FC<{ | ||
@@ -7,19 +19,5 @@ noDefaultStyles?: boolean; | ||
| children?: React.ReactNode; | ||
| popupParams: { | ||
| challengeParams?: ChallengeParams<NumberType>; | ||
| name?: string; | ||
| description?: string; | ||
| image?: string; | ||
| allowAddressSelect?: boolean; | ||
| autoGenerateNonce?: boolean; | ||
| verifyOptions?: VerifyChallengeOptions; | ||
| expectVerifySuccess?: boolean; | ||
| otherSignIns?: ('discord' | 'twitter' | 'github' | 'google')[]; | ||
| redirectUri?: string; | ||
| clientId?: string; | ||
| state?: string; | ||
| expectSecretsProofs?: boolean; | ||
| }; | ||
| popupParams: CodeGenQueryParams; | ||
| } & ButtonHTMLAttributes<HTMLButtonElement>>; | ||
| export declare const Spinner: React.FC<{}>; | ||
| export default SignInWithBitBadgesButton; |
+2
-2
| { | ||
| "name": "blockin", | ||
| "version": "1.3.9", | ||
| "version": "1.3.10", | ||
| "description": "", | ||
@@ -77,3 +77,3 @@ "files": [ | ||
| "sass-loader": "^10.4.1", | ||
| "storybook": "^7.6.9", | ||
| "storybook": "^8.1.9", | ||
| "tailwindcss": "^3.4.3", | ||
@@ -80,0 +80,0 @@ "typedoc": "^0.25.4", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
342468
0