Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dynamic-labs/types

Package Overview
Dependencies
Maintainers
1
Versions
536
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dynamic-labs/types - npm Package Compare versions

Comparing version 4.0.0-alpha.7 to 4.0.0-alpha.8

2

package.js
'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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc