@dynamic-labs/types
Advanced tools
Comparing version 4.0.0-alpha.7 to 4.0.0-alpha.8
'use client' | ||
var version = "4.0.0-alpha.7"; | ||
var version = "4.0.0-alpha.8"; | ||
export { version }; |
{ | ||
"name": "@dynamic-labs/types", | ||
"version": "4.0.0-alpha.7", | ||
"version": "4.0.0-alpha.8", | ||
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.", | ||
@@ -22,5 +22,5 @@ "author": "Dynamic Labs, Inc.", | ||
"@dynamic-labs/sdk-api-core": "0.0.535", | ||
"@dynamic-labs/assert-package-version": "4.0.0-alpha.7" | ||
"@dynamic-labs/assert-package-version": "4.0.0-alpha.8" | ||
}, | ||
"peerDependencies": {} | ||
} |
@@ -28,2 +28,22 @@ import { ProviderEnum } from '@dynamic-labs/sdk-api-core'; | ||
}; | ||
/** | ||
* Maps auth methods to what property will be displayed under the "option" property of an authentication event. | ||
* | ||
* Users will be able to access this data through the AuthOptions[K] type injection as well, | ||
* but with the "option" property they will also have a standard way to access the auth method target. | ||
*/ | ||
type AuthEventPayloadOptionMap = { | ||
wallet: AuthOptions['wallet']['connectorName']; | ||
sms: AuthOptions['sms']['phone']; | ||
email: AuthOptions['email']['email']; | ||
social: AuthOptions['social']['provider']; | ||
externalAuth: AuthOptions['externalAuth']['externalUserId']; | ||
}; | ||
/** Payload of auth events that provide insight into which auth method was selected */ | ||
export type AuthEventPayload = { | ||
[K in AuthMethod]: { | ||
type: K; | ||
option: AuthEventPayloadOptionMap[K]; | ||
} & AuthOptions[K]; | ||
}[AuthMethod]; | ||
export {}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
372085
333
+ Added@dynamic-labs/assert-package-version@4.0.0-alpha.8(transitive)
+ Added@dynamic-labs/logger@4.0.0-alpha.8(transitive)
- Removed@dynamic-labs/assert-package-version@4.0.0-alpha.7(transitive)
- Removed@dynamic-labs/logger@4.0.0-alpha.7(transitive)