@guinetik/primitives-ts 0.2.1 → 0.2.2
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/dist/auth.types.d.ts +17 -0
- package/dist/auth.types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/auth.types.d.ts
CHANGED
|
@@ -6,6 +6,21 @@
|
|
|
6
6
|
* Authentication provider types
|
|
7
7
|
*/
|
|
8
8
|
export type AuthProvider = 'email' | 'google';
|
|
9
|
+
/**
|
|
10
|
+
* Provider-specific user information
|
|
11
|
+
*/
|
|
12
|
+
export interface UserProvider {
|
|
13
|
+
/** Provider identifier (e.g., 'password', 'google.com') */
|
|
14
|
+
providerId: string;
|
|
15
|
+
/** User ID from this provider */
|
|
16
|
+
uid: string;
|
|
17
|
+
/** Display name from this provider */
|
|
18
|
+
displayName?: string;
|
|
19
|
+
/** Email from this provider */
|
|
20
|
+
email?: string;
|
|
21
|
+
/** Photo URL from this provider */
|
|
22
|
+
photoURL?: string;
|
|
23
|
+
}
|
|
9
24
|
/**
|
|
10
25
|
* User information
|
|
11
26
|
*/
|
|
@@ -20,6 +35,8 @@ export interface User {
|
|
|
20
35
|
emailVerified?: boolean;
|
|
21
36
|
/** URL to user's profile photo */
|
|
22
37
|
photoURL?: string;
|
|
38
|
+
/** List of providers linked to this account */
|
|
39
|
+
providerData?: UserProvider[];
|
|
23
40
|
}
|
|
24
41
|
/**
|
|
25
42
|
* Authentication response after successful login
|
package/dist/auth.types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.types.d.ts","sourceRoot":"","sources":["../src/auth.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE9C;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,6BAA6B;IAC7B,GAAG,EAAE,MAAM,CAAC;IAEZ,2BAA2B;IAC3B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