@dynamic-labs/types 2.0.6 → 2.0.7
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 +7 -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,11 @@
|
|
|
1
1
|
|
|
2
|
+
### [2.0.7](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.6...v2.0.7) (2024-05-15)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add authFailure and authInit events ([#5461](https://github.com/dynamic-labs/DynamicAuth/issues/5461)) ([e02e1ad](https://github.com/dynamic-labs/DynamicAuth/commit/e02e1ad36b378e3b2c609fe5bfb2d37aa6a363e0))
|
|
8
|
+
|
|
2
9
|
### [2.0.6](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.5...v2.0.6) (2024-05-03)
|
|
3
10
|
|
|
4
11
|
|
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;
|