@junobuild/core-standalone 3.0.0 → 3.0.1

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.
@@ -21,16 +21,42 @@ export interface ProviderDataWebAuthn {
21
21
  aaguid: Uint8Array | number[];
22
22
  }
23
23
  /**
24
- * Container for provider-specific metadata.
25
- *
26
- * Currently only `webauthn` is supported, but this type
27
- * can be extended in the future.
28
- *
29
- * @interface ProviderData
24
+ * Metadata for OpenID (e.g. Google) authentication.
25
+ * @interface ProviderDataOpenId
30
26
  */
31
- export interface ProviderData {
27
+ export interface ProviderDataOpenId {
32
28
  /**
33
- * Metadata specific to WebAuthn (passkey) authentication.
29
+ * Email address of the authenticated user.
34
30
  */
35
- webauthn: ProviderDataWebAuthn;
31
+ email?: string;
32
+ /**
33
+ * Full name of the authenticated user.
34
+ */
35
+ name?: string;
36
+ /**
37
+ * Given name of the authenticated user.
38
+ */
39
+ givenName?: string;
40
+ /**
41
+ * Family name of the authenticated user.
42
+ */
43
+ familyName?: string;
44
+ /**
45
+ * Profile picture URL of the authenticated user.
46
+ */
47
+ picture?: string;
48
+ /**
49
+ * Locale of the authenticated user.
50
+ */
51
+ locale?: string;
36
52
  }
53
+ /**
54
+ * Container for provider-specific metadata.
55
+ *
56
+ * @typedef {({ webauthn: ProviderDataWebAuthn } | { openid: ProviderDataOpenId })} ProviderData
57
+ */
58
+ export type ProviderData = {
59
+ webauthn: ProviderDataWebAuthn;
60
+ } | {
61
+ openid: ProviderDataOpenId;
62
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/core-standalone",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "JavaScript core client for Juno with all dependencies bundled — no peer dependencies",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",