@dynamic-labs/types 2.0.6 → 2.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.
- package/CHANGELOG.md +18 -0
- package/package.json +1 -1
- package/src/auth.d.ts +22 -0
- package/src/index.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
|
|
2
|
+
### [2.0.8](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.7...v2.0.8) (2024-05-27)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* allow leather to show up in wallet list even when not installed … ([#5626](https://github.com/dynamic-labs/DynamicAuth/issues/5626)) ([e757679](https://github.com/dynamic-labs/DynamicAuth/commit/e757679a05feee628392c7c9042080b53e743694))
|
|
8
|
+
* btc balance calculation ([#5740](https://github.com/dynamic-labs/DynamicAuth/issues/5740)) ([f8e01bb](https://github.com/dynamic-labs/DynamicAuth/commit/f8e01bb5d8d404f041797f10f27dfea1ddbfccdf)), closes [#5716](https://github.com/dynamic-labs/DynamicAuth/issues/5716)
|
|
9
|
+
* init ethers web3provider without a network if selected network is unsupported ([#5653](https://github.com/dynamic-labs/DynamicAuth/issues/5653)) ([91095c2](https://github.com/dynamic-labs/DynamicAuth/commit/91095c2aa45e57847e3852fbcde7fe926b2e581a))
|
|
10
|
+
* show phone number in use error message ([#5684](https://github.com/dynamic-labs/DynamicAuth/issues/5684)) ([add08e4](https://github.com/dynamic-labs/DynamicAuth/commit/add08e490749af4852efaddae83b43f227442756)), closes [#5681](https://github.com/dynamic-labs/DynamicAuth/issues/5681)
|
|
11
|
+
* use PromptModal when using the DynamicMultiWalletPromptsWidget f… ([#5628](https://github.com/dynamic-labs/DynamicAuth/issues/5628)) ([310a92c](https://github.com/dynamic-labs/DynamicAuth/commit/310a92cfe6386747b7327fa3853d970a75b996cd))
|
|
12
|
+
|
|
13
|
+
### [2.0.7](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.6...v2.0.7) (2024-05-15)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* add authFailure and authInit events ([#5461](https://github.com/dynamic-labs/DynamicAuth/issues/5461)) ([e02e1ad](https://github.com/dynamic-labs/DynamicAuth/commit/e02e1ad36b378e3b2c609fe5bfb2d37aa6a363e0))
|
|
19
|
+
|
|
2
20
|
### [2.0.6](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.5...v2.0.6) (2024-05-03)
|
|
3
21
|
|
|
4
22
|
|
package/package.json
CHANGED
package/src/auth.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ProviderEnum } from '@dynamic-labs/sdk-api-core';
|
|
2
|
+
export type PhoneData = {
|
|
3
|
+
/** Just the phone numbers with no country dial code */
|
|
4
|
+
phone: string;
|
|
5
|
+
/** ISO2 of the corresponding country */
|
|
6
|
+
iso2: string;
|
|
7
|
+
/** Dial code of the corresponding country */
|
|
8
|
+
dialCode: string;
|
|
9
|
+
};
|
|
10
|
+
/** For each auth type, maps the data a user needs to authenticate with it */
|
|
11
|
+
export type AuthOption = {
|
|
12
|
+
/** The email address */
|
|
13
|
+
email: string;
|
|
14
|
+
/** The social provider */
|
|
15
|
+
social: ProviderEnum;
|
|
16
|
+
/** The wallet name */
|
|
17
|
+
wallet: string;
|
|
18
|
+
/** The phone number data */
|
|
19
|
+
sms: PhoneData;
|
|
20
|
+
};
|
|
21
|
+
/** Identifies the ways a user can authenticate with Dynamic */
|
|
22
|
+
export type AuthType = keyof AuthOption;
|