@clerk/expo-google-signin 0.1.0

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.
Files changed (54) hide show
  1. package/LICENSE +21 -0
  2. package/android/build.gradle +39 -0
  3. package/android/src/main/AndroidManifest.xml +1 -0
  4. package/android/src/main/java/expo/modules/clerk/googlesignin/ClerkGoogleSignInModule.kt +257 -0
  5. package/app.plugin.d.ts +5 -0
  6. package/app.plugin.js +32 -0
  7. package/dist/google-one-tap/ClerkGoogleOneTapSignIn.d.ts +86 -0
  8. package/dist/google-one-tap/ClerkGoogleOneTapSignIn.d.ts.map +1 -0
  9. package/dist/google-one-tap/ClerkGoogleOneTapSignIn.js +165 -0
  10. package/dist/google-one-tap/ClerkGoogleOneTapSignIn.js.map +1 -0
  11. package/dist/google-one-tap/index.d.ts +3 -0
  12. package/dist/google-one-tap/index.d.ts.map +1 -0
  13. package/dist/google-one-tap/index.js +37 -0
  14. package/dist/google-one-tap/index.js.map +1 -0
  15. package/dist/google-one-tap/types.d.ts +161 -0
  16. package/dist/google-one-tap/types.d.ts.map +1 -0
  17. package/dist/google-one-tap/types.js +17 -0
  18. package/dist/google-one-tap/types.js.map +1 -0
  19. package/dist/index.d.ts +3 -0
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +29 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/specs/NativeClerkGoogleSignIn.android.d.ts +11 -0
  24. package/dist/specs/NativeClerkGoogleSignIn.android.d.ts.map +1 -0
  25. package/dist/specs/NativeClerkGoogleSignIn.android.js +26 -0
  26. package/dist/specs/NativeClerkGoogleSignIn.android.js.map +1 -0
  27. package/dist/specs/NativeClerkGoogleSignIn.d.ts +11 -0
  28. package/dist/specs/NativeClerkGoogleSignIn.d.ts.map +1 -0
  29. package/dist/specs/NativeClerkGoogleSignIn.js +26 -0
  30. package/dist/specs/NativeClerkGoogleSignIn.js.map +1 -0
  31. package/dist/useSignInWithGoogle.android.d.ts +46 -0
  32. package/dist/useSignInWithGoogle.android.d.ts.map +1 -0
  33. package/dist/useSignInWithGoogle.android.js +30 -0
  34. package/dist/useSignInWithGoogle.android.js.map +1 -0
  35. package/dist/useSignInWithGoogle.d.ts +52 -0
  36. package/dist/useSignInWithGoogle.d.ts.map +1 -0
  37. package/dist/useSignInWithGoogle.ios.d.ts +46 -0
  38. package/dist/useSignInWithGoogle.ios.d.ts.map +1 -0
  39. package/dist/useSignInWithGoogle.ios.js +30 -0
  40. package/dist/useSignInWithGoogle.ios.js.map +1 -0
  41. package/dist/useSignInWithGoogle.js +40 -0
  42. package/dist/useSignInWithGoogle.js.map +1 -0
  43. package/dist/useSignInWithGoogle.shared.d.ts +29 -0
  44. package/dist/useSignInWithGoogle.shared.d.ts.map +1 -0
  45. package/dist/useSignInWithGoogle.shared.js +167 -0
  46. package/dist/useSignInWithGoogle.shared.js.map +1 -0
  47. package/dist/useSignInWithGoogle.types.d.ts +13 -0
  48. package/dist/useSignInWithGoogle.types.d.ts.map +1 -0
  49. package/dist/useSignInWithGoogle.types.js +17 -0
  50. package/dist/useSignInWithGoogle.types.js.map +1 -0
  51. package/expo-module.config.json +9 -0
  52. package/ios/ClerkGoogleSignIn.podspec +27 -0
  53. package/ios/ClerkGoogleSignInModule.swift +199 -0
  54. package/package.json +73 -0
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var google_one_tap_exports = {};
20
+ __export(google_one_tap_exports, {
21
+ ClerkGoogleOneTapSignIn: () => import_ClerkGoogleOneTapSignIn.ClerkGoogleOneTapSignIn,
22
+ isCancelledResponse: () => import_ClerkGoogleOneTapSignIn.isCancelledResponse,
23
+ isErrorWithCode: () => import_ClerkGoogleOneTapSignIn.isErrorWithCode,
24
+ isNoSavedCredentialFoundResponse: () => import_ClerkGoogleOneTapSignIn.isNoSavedCredentialFoundResponse,
25
+ isSuccessResponse: () => import_ClerkGoogleOneTapSignIn.isSuccessResponse
26
+ });
27
+ module.exports = __toCommonJS(google_one_tap_exports);
28
+ var import_ClerkGoogleOneTapSignIn = require("./ClerkGoogleOneTapSignIn");
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ ClerkGoogleOneTapSignIn,
32
+ isCancelledResponse,
33
+ isErrorWithCode,
34
+ isNoSavedCredentialFoundResponse,
35
+ isSuccessResponse
36
+ });
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/google-one-tap/index.ts"],"sourcesContent":["export {\n ClerkGoogleOneTapSignIn,\n isCancelledResponse,\n isNoSavedCredentialFoundResponse,\n isSuccessResponse,\n isErrorWithCode,\n} from './ClerkGoogleOneTapSignIn';\n\nexport type {\n ConfigureParams,\n SignInParams,\n CreateAccountParams,\n ExplicitSignInParams,\n OneTapResponse,\n OneTapSuccessResponse,\n CancelledResponse,\n NoSavedCredentialFound,\n GoogleUser,\n GoogleSignInError,\n GoogleSignInErrorCode,\n} from './types';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAMO;","names":[]}
@@ -0,0 +1,161 @@
1
+ /**
2
+ * Configuration parameters for Google One Tap Sign-In.
3
+ */
4
+ export type ConfigureParams = {
5
+ /**
6
+ * The web client ID from Google Cloud Console.
7
+ * This is required for Google Sign-In to work.
8
+ * On iOS, this is used as the serverClientID for token audience.
9
+ */
10
+ webClientId: string;
11
+ /**
12
+ * The iOS client ID from Google Cloud Console.
13
+ * This is only used on iOS for the OAuth flow.
14
+ * If not provided, webClientId will be used.
15
+ * @platform iOS
16
+ */
17
+ iosClientId?: string;
18
+ /**
19
+ * The hosted domain to restrict sign-in to a specific domain.
20
+ */
21
+ hostedDomain?: string;
22
+ /**
23
+ * Whether to enable auto-select for returning users.
24
+ * When true, if only one credential is available, it will be automatically selected.
25
+ * @default false
26
+ */
27
+ autoSelectEnabled?: boolean;
28
+ };
29
+ /**
30
+ * Parameters for the signIn method.
31
+ */
32
+ export type SignInParams = {
33
+ /**
34
+ * A cryptographically random string used to mitigate replay attacks.
35
+ * The nonce will be included in the ID token.
36
+ */
37
+ nonce?: string;
38
+ /**
39
+ * Android only. Whether to filter credentials to only show accounts that have
40
+ * previously authorized this app.
41
+ *
42
+ * No-op on iOS.
43
+ *
44
+ * @platform Android
45
+ * @default true
46
+ */
47
+ filterByAuthorizedAccounts?: boolean;
48
+ /**
49
+ * iOS only. Hint passed to Google Sign-In, such as a user ID or email
50
+ * address.
51
+ *
52
+ * This may prefill or prioritize an account when possible, but does not
53
+ * restrict the account picker.
54
+ *
55
+ * No-op on Android.
56
+ *
57
+ * @platform iOS
58
+ */
59
+ hint?: string;
60
+ };
61
+ /**
62
+ * Parameters for the createAccount method.
63
+ */
64
+ export type CreateAccountParams = {
65
+ /**
66
+ * A cryptographically random string used to mitigate replay attacks.
67
+ * The nonce will be included in the ID token.
68
+ */
69
+ nonce?: string;
70
+ };
71
+ /**
72
+ * Parameters for the presentExplicitSignIn method.
73
+ */
74
+ export type ExplicitSignInParams = {
75
+ /**
76
+ * A cryptographically random string used to mitigate replay attacks.
77
+ * The nonce will be included in the ID token.
78
+ */
79
+ nonce?: string;
80
+ };
81
+ /**
82
+ * User information returned from Google Sign-In.
83
+ */
84
+ export type GoogleUser = {
85
+ /**
86
+ * The user's unique Google identifier (OIDC "sub" claim).
87
+ * This is distinct from the user's email address.
88
+ */
89
+ id: string;
90
+ /**
91
+ * The user's email address.
92
+ */
93
+ email: string;
94
+ /**
95
+ * The user's full display name.
96
+ */
97
+ name: string | null;
98
+ /**
99
+ * The user's given (first) name.
100
+ */
101
+ givenName: string | null;
102
+ /**
103
+ * The user's family (last) name.
104
+ */
105
+ familyName: string | null;
106
+ /**
107
+ * URL to the user's profile picture.
108
+ */
109
+ photo: string | null;
110
+ };
111
+ /**
112
+ * Successful sign-in response.
113
+ */
114
+ export type OneTapSuccessResponse = {
115
+ type: 'success';
116
+ data: {
117
+ /**
118
+ * The Google ID token containing user information and nonce.
119
+ */
120
+ idToken: string;
121
+ /**
122
+ * The user's information.
123
+ */
124
+ user: GoogleUser;
125
+ };
126
+ };
127
+ /**
128
+ * Response when the user cancels the sign-in flow.
129
+ */
130
+ export type CancelledResponse = {
131
+ type: 'cancelled';
132
+ data: null;
133
+ };
134
+ /**
135
+ * Response when no saved credential is found.
136
+ */
137
+ export type NoSavedCredentialFound = {
138
+ type: 'noSavedCredentialFound';
139
+ data: null;
140
+ };
141
+ /**
142
+ * Union type for all possible One Tap responses.
143
+ */
144
+ export type OneTapResponse = OneTapSuccessResponse | CancelledResponse | NoSavedCredentialFound;
145
+ /**
146
+ * Error codes that can be thrown by the Google Sign-In module.
147
+ *
148
+ * - `SIGN_IN_CANCELLED`: User cancelled the sign-in flow
149
+ * - `NO_SAVED_CREDENTIAL_FOUND`: No saved credentials available for One Tap
150
+ * - `NOT_CONFIGURED`: Module not configured before use
151
+ * - `GOOGLE_SIGN_IN_ERROR`: Generic Google Sign-In error
152
+ * - `E_ACTIVITY_UNAVAILABLE`: Android activity unavailable (GoogleSignInActivityUnavailableException)
153
+ */
154
+ export type GoogleSignInErrorCode = 'SIGN_IN_CANCELLED' | 'NO_SAVED_CREDENTIAL_FOUND' | 'NOT_CONFIGURED' | 'GOOGLE_SIGN_IN_ERROR' | 'E_ACTIVITY_UNAVAILABLE';
155
+ /**
156
+ * Error thrown by the Google Sign-In module.
157
+ */
158
+ export interface GoogleSignInError extends Error {
159
+ code: GoogleSignInErrorCode;
160
+ }
161
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/google-one-tap/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;;OAQG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IAErC;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE;QACJ;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,IAAI,EAAE,UAAU,CAAC;KAClB,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,wBAAwB,CAAC;IAC/B,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,qBAAqB,GAAG,iBAAiB,GAAG,sBAAsB,CAAC;AAEhG;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAC7B,mBAAmB,GACnB,2BAA2B,GAC3B,gBAAgB,GAChB,sBAAsB,GACtB,wBAAwB,CAAC;AAE7B;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,KAAK;IAC9C,IAAI,EAAE,qBAAqB,CAAC;CAC7B"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var types_exports = {};
16
+ module.exports = __toCommonJS(types_exports);
17
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/google-one-tap/types.ts"],"sourcesContent":["/**\n * Configuration parameters for Google One Tap Sign-In.\n */\nexport type ConfigureParams = {\n /**\n * The web client ID from Google Cloud Console.\n * This is required for Google Sign-In to work.\n * On iOS, this is used as the serverClientID for token audience.\n */\n webClientId: string;\n\n /**\n * The iOS client ID from Google Cloud Console.\n * This is only used on iOS for the OAuth flow.\n * If not provided, webClientId will be used.\n * @platform iOS\n */\n iosClientId?: string;\n\n /**\n * The hosted domain to restrict sign-in to a specific domain.\n */\n hostedDomain?: string;\n\n /**\n * Whether to enable auto-select for returning users.\n * When true, if only one credential is available, it will be automatically selected.\n * @default false\n */\n autoSelectEnabled?: boolean;\n};\n\n/**\n * Parameters for the signIn method.\n */\nexport type SignInParams = {\n /**\n * A cryptographically random string used to mitigate replay attacks.\n * The nonce will be included in the ID token.\n */\n nonce?: string;\n\n /**\n * Android only. Whether to filter credentials to only show accounts that have\n * previously authorized this app.\n *\n * No-op on iOS.\n *\n * @platform Android\n * @default true\n */\n filterByAuthorizedAccounts?: boolean;\n\n /**\n * iOS only. Hint passed to Google Sign-In, such as a user ID or email\n * address.\n *\n * This may prefill or prioritize an account when possible, but does not\n * restrict the account picker.\n *\n * No-op on Android.\n *\n * @platform iOS\n */\n hint?: string;\n};\n\n/**\n * Parameters for the createAccount method.\n */\nexport type CreateAccountParams = {\n /**\n * A cryptographically random string used to mitigate replay attacks.\n * The nonce will be included in the ID token.\n */\n nonce?: string;\n};\n\n/**\n * Parameters for the presentExplicitSignIn method.\n */\nexport type ExplicitSignInParams = {\n /**\n * A cryptographically random string used to mitigate replay attacks.\n * The nonce will be included in the ID token.\n */\n nonce?: string;\n};\n\n/**\n * User information returned from Google Sign-In.\n */\nexport type GoogleUser = {\n /**\n * The user's unique Google identifier (OIDC \"sub\" claim).\n * This is distinct from the user's email address.\n */\n id: string;\n\n /**\n * The user's email address.\n */\n email: string;\n\n /**\n * The user's full display name.\n */\n name: string | null;\n\n /**\n * The user's given (first) name.\n */\n givenName: string | null;\n\n /**\n * The user's family (last) name.\n */\n familyName: string | null;\n\n /**\n * URL to the user's profile picture.\n */\n photo: string | null;\n};\n\n/**\n * Successful sign-in response.\n */\nexport type OneTapSuccessResponse = {\n type: 'success';\n data: {\n /**\n * The Google ID token containing user information and nonce.\n */\n idToken: string;\n\n /**\n * The user's information.\n */\n user: GoogleUser;\n };\n};\n\n/**\n * Response when the user cancels the sign-in flow.\n */\nexport type CancelledResponse = {\n type: 'cancelled';\n data: null;\n};\n\n/**\n * Response when no saved credential is found.\n */\nexport type NoSavedCredentialFound = {\n type: 'noSavedCredentialFound';\n data: null;\n};\n\n/**\n * Union type for all possible One Tap responses.\n */\nexport type OneTapResponse = OneTapSuccessResponse | CancelledResponse | NoSavedCredentialFound;\n\n/**\n * Error codes that can be thrown by the Google Sign-In module.\n *\n * - `SIGN_IN_CANCELLED`: User cancelled the sign-in flow\n * - `NO_SAVED_CREDENTIAL_FOUND`: No saved credentials available for One Tap\n * - `NOT_CONFIGURED`: Module not configured before use\n * - `GOOGLE_SIGN_IN_ERROR`: Generic Google Sign-In error\n * - `E_ACTIVITY_UNAVAILABLE`: Android activity unavailable (GoogleSignInActivityUnavailableException)\n */\nexport type GoogleSignInErrorCode =\n | 'SIGN_IN_CANCELLED'\n | 'NO_SAVED_CREDENTIAL_FOUND'\n | 'NOT_CONFIGURED'\n | 'GOOGLE_SIGN_IN_ERROR'\n | 'E_ACTIVITY_UNAVAILABLE';\n\n/**\n * Error thrown by the Google Sign-In module.\n */\nexport interface GoogleSignInError extends Error {\n code: GoogleSignInErrorCode;\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
@@ -0,0 +1,3 @@
1
+ export { useSignInWithGoogle } from './useSignInWithGoogle';
2
+ export type { StartGoogleAuthenticationFlowParams, StartGoogleAuthenticationFlowReturnType, } from './useSignInWithGoogle.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,YAAY,EACV,mCAAmC,EACnC,uCAAuC,GACxC,MAAM,6BAA6B,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var index_exports = {};
20
+ __export(index_exports, {
21
+ useSignInWithGoogle: () => import_useSignInWithGoogle.useSignInWithGoogle
22
+ });
23
+ module.exports = __toCommonJS(index_exports);
24
+ var import_useSignInWithGoogle = require("./useSignInWithGoogle");
25
+ // Annotate the CommonJS export names for ESM import in node:
26
+ 0 && (module.exports = {
27
+ useSignInWithGoogle
28
+ });
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export { useSignInWithGoogle } from './useSignInWithGoogle';\nexport type {\n StartGoogleAuthenticationFlowParams,\n StartGoogleAuthenticationFlowReturnType,\n} from './useSignInWithGoogle.types';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAAoC;","names":[]}
@@ -0,0 +1,11 @@
1
+ type NativeMap = Record<string, unknown>;
2
+ interface Spec {
3
+ configure(params: NativeMap): void;
4
+ signIn(params: NativeMap | null): Promise<NativeMap>;
5
+ createAccount(params: NativeMap | null): Promise<NativeMap>;
6
+ presentExplicitSignIn(params: NativeMap | null): Promise<NativeMap>;
7
+ signOut(): Promise<void>;
8
+ }
9
+ declare const _default: Spec;
10
+ export default _default;
11
+ //# sourceMappingURL=NativeClerkGoogleSignIn.android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeClerkGoogleSignIn.android.d.ts","sourceRoot":"","sources":["../../src/specs/NativeClerkGoogleSignIn.android.ts"],"names":[],"mappings":"AAEA,KAAK,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEzC,UAAU,IAAI;IACZ,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACrD,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAC5D,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACpE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;;AAED,wBAA8D"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var NativeClerkGoogleSignIn_android_exports = {};
20
+ __export(NativeClerkGoogleSignIn_android_exports, {
21
+ default: () => NativeClerkGoogleSignIn_android_default
22
+ });
23
+ module.exports = __toCommonJS(NativeClerkGoogleSignIn_android_exports);
24
+ var import_expo = require("expo");
25
+ var NativeClerkGoogleSignIn_android_default = (0, import_expo.requireNativeModule)("ClerkGoogleSignIn");
26
+ //# sourceMappingURL=NativeClerkGoogleSignIn.android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/specs/NativeClerkGoogleSignIn.android.ts"],"sourcesContent":["import { requireNativeModule } from 'expo';\n\ntype NativeMap = Record<string, unknown>;\n\ninterface Spec {\n configure(params: NativeMap): void;\n signIn(params: NativeMap | null): Promise<NativeMap>;\n createAccount(params: NativeMap | null): Promise<NativeMap>;\n presentExplicitSignIn(params: NativeMap | null): Promise<NativeMap>;\n signOut(): Promise<void>;\n}\n\nexport default requireNativeModule<Spec>('ClerkGoogleSignIn');\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAoC;AAYpC,IAAO,8CAAQ,iCAA0B,mBAAmB;","names":[]}
@@ -0,0 +1,11 @@
1
+ type NativeMap = Record<string, unknown>;
2
+ interface Spec {
3
+ configure(params: NativeMap): void;
4
+ signIn(params: NativeMap | null): Promise<NativeMap>;
5
+ createAccount(params: NativeMap | null): Promise<NativeMap>;
6
+ presentExplicitSignIn(params: NativeMap | null): Promise<NativeMap>;
7
+ signOut(): Promise<void>;
8
+ }
9
+ declare const _default: Spec | null;
10
+ export default _default;
11
+ //# sourceMappingURL=NativeClerkGoogleSignIn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeClerkGoogleSignIn.d.ts","sourceRoot":"","sources":["../../src/specs/NativeClerkGoogleSignIn.ts"],"names":[],"mappings":"AAEA,KAAK,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEzC,UAAU,IAAI;IACZ,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC;IACnC,MAAM,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACrD,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAC5D,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACpE,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;;AAED,wBAAsE"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var NativeClerkGoogleSignIn_exports = {};
20
+ __export(NativeClerkGoogleSignIn_exports, {
21
+ default: () => NativeClerkGoogleSignIn_default
22
+ });
23
+ module.exports = __toCommonJS(NativeClerkGoogleSignIn_exports);
24
+ var import_expo = require("expo");
25
+ var NativeClerkGoogleSignIn_default = (0, import_expo.requireOptionalNativeModule)("ClerkGoogleSignIn");
26
+ //# sourceMappingURL=NativeClerkGoogleSignIn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/specs/NativeClerkGoogleSignIn.ts"],"sourcesContent":["import { requireOptionalNativeModule } from 'expo';\n\ntype NativeMap = Record<string, unknown>;\n\ninterface Spec {\n configure(params: NativeMap): void;\n signIn(params: NativeMap | null): Promise<NativeMap>;\n createAccount(params: NativeMap | null): Promise<NativeMap>;\n presentExplicitSignIn(params: NativeMap | null): Promise<NativeMap>;\n signOut(): Promise<void>;\n}\n\nexport default requireOptionalNativeModule<Spec>('ClerkGoogleSignIn');\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA4C;AAY5C,IAAO,sCAAQ,yCAAkC,mBAAmB;","names":[]}
@@ -0,0 +1,46 @@
1
+ export type { StartGoogleAuthenticationFlowParams, StartGoogleAuthenticationFlowReturnType, } from './useSignInWithGoogle.types';
2
+ /**
3
+ * Hook for native Google Authentication on Android using Clerk's built-in Google One Tap module.
4
+ *
5
+ * This hook provides a simplified way to authenticate users with their Google account
6
+ * using the native Android Google Sign-In UI with Credential Manager. The authentication
7
+ * flow automatically handles the ID token exchange with Clerk's backend and manages
8
+ * the transfer flow between sign-in and sign-up.
9
+ *
10
+ * Features:
11
+ * - Native Google One Tap UI
12
+ * - Built-in nonce support for replay attack protection
13
+ * - No additional dependencies required
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * import { useSignInWithGoogle } from '@clerk/expo-google-signin';
18
+ * import { Button } from 'react-native';
19
+ *
20
+ * function GoogleSignInButton() {
21
+ * const { startGoogleAuthenticationFlow } = useSignInWithGoogle();
22
+ *
23
+ * const onPress = async () => {
24
+ * try {
25
+ * const { createdSessionId, setActive } = await startGoogleAuthenticationFlow();
26
+ *
27
+ * if (createdSessionId && setActive) {
28
+ * await setActive({ session: createdSessionId });
29
+ * }
30
+ * } catch (err) {
31
+ * console.error('Google Authentication error:', err);
32
+ * }
33
+ * };
34
+ *
35
+ * return <Button title="Sign in with Google" onPress={onPress} />;
36
+ * }
37
+ * ```
38
+ *
39
+ * @platform Android - This is the Android-specific implementation using Credential Manager
40
+ *
41
+ * @returns An object containing the `startGoogleAuthenticationFlow` function
42
+ */
43
+ export declare const useSignInWithGoogle: () => {
44
+ startGoogleAuthenticationFlow: (startGoogleAuthenticationFlowParams?: import("./useSignInWithGoogle.types").StartGoogleAuthenticationFlowParams) => Promise<import("./useSignInWithGoogle.types").StartGoogleAuthenticationFlowReturnType>;
45
+ };
46
+ //# sourceMappingURL=useSignInWithGoogle.android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSignInWithGoogle.android.d.ts","sourceRoot":"","sources":["../src/useSignInWithGoogle.android.ts"],"names":[],"mappings":"AACA,YAAY,EACV,mCAAmC,EACnC,uCAAuC,GACxC,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,mBAAmB;;CAA4D,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var useSignInWithGoogle_android_exports = {};
20
+ __export(useSignInWithGoogle_android_exports, {
21
+ useSignInWithGoogle: () => useSignInWithGoogle
22
+ });
23
+ module.exports = __toCommonJS(useSignInWithGoogle_android_exports);
24
+ var import_useSignInWithGoogle = require("./useSignInWithGoogle.shared");
25
+ const useSignInWithGoogle = (0, import_useSignInWithGoogle.createUseSignInWithGoogle)({ requiresIosClientId: false });
26
+ // Annotate the CommonJS export names for ESM import in node:
27
+ 0 && (module.exports = {
28
+ useSignInWithGoogle
29
+ });
30
+ //# sourceMappingURL=useSignInWithGoogle.android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/useSignInWithGoogle.android.ts"],"sourcesContent":["import { createUseSignInWithGoogle } from './useSignInWithGoogle.shared';\nexport type {\n StartGoogleAuthenticationFlowParams,\n StartGoogleAuthenticationFlowReturnType,\n} from './useSignInWithGoogle.types';\n\n/**\n * Hook for native Google Authentication on Android using Clerk's built-in Google One Tap module.\n *\n * This hook provides a simplified way to authenticate users with their Google account\n * using the native Android Google Sign-In UI with Credential Manager. The authentication\n * flow automatically handles the ID token exchange with Clerk's backend and manages\n * the transfer flow between sign-in and sign-up.\n *\n * Features:\n * - Native Google One Tap UI\n * - Built-in nonce support for replay attack protection\n * - No additional dependencies required\n *\n * @example\n * ```tsx\n * import { useSignInWithGoogle } from '@clerk/expo-google-signin';\n * import { Button } from 'react-native';\n *\n * function GoogleSignInButton() {\n * const { startGoogleAuthenticationFlow } = useSignInWithGoogle();\n *\n * const onPress = async () => {\n * try {\n * const { createdSessionId, setActive } = await startGoogleAuthenticationFlow();\n *\n * if (createdSessionId && setActive) {\n * await setActive({ session: createdSessionId });\n * }\n * } catch (err) {\n * console.error('Google Authentication error:', err);\n * }\n * };\n *\n * return <Button title=\"Sign in with Google\" onPress={onPress} />;\n * }\n * ```\n *\n * @platform Android - This is the Android-specific implementation using Credential Manager\n *\n * @returns An object containing the `startGoogleAuthenticationFlow` function\n */\nexport const useSignInWithGoogle = createUseSignInWithGoogle({ requiresIosClientId: false });\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAA0C;AA+CnC,MAAM,0BAAsB,sDAA0B,EAAE,qBAAqB,MAAM,CAAC;","names":[]}
@@ -0,0 +1,52 @@
1
+ import type { SetActive, SignInResource, SignUpResource } from '@clerk/shared/types';
2
+ type SignUpUnsafeMetadata = Record<string, unknown>;
3
+ export type StartGoogleAuthenticationFlowParams = {
4
+ unsafeMetadata?: SignUpUnsafeMetadata;
5
+ };
6
+ export type StartGoogleAuthenticationFlowReturnType = {
7
+ createdSessionId: string | null;
8
+ setActive?: SetActive;
9
+ signIn?: SignInResource;
10
+ signUp?: SignUpResource;
11
+ };
12
+ /**
13
+ * Stub for Google Authentication hook on unsupported platforms.
14
+ *
15
+ * Native Google Authentication is only available on iOS and Android.
16
+ * For web platforms, use the OAuth-based Google Sign-In flow instead via useSSO.
17
+ *
18
+ * @example
19
+ * ```tsx
20
+ * import { useSSO } from '@clerk/expo';
21
+ * import { Button } from 'react-native';
22
+ *
23
+ * function GoogleSignInButton() {
24
+ * const { startSSOFlow } = useSSO();
25
+ *
26
+ * const onPress = async () => {
27
+ * try {
28
+ * const { createdSessionId, setActive } = await startSSOFlow({
29
+ * strategy: 'oauth_google'
30
+ * });
31
+ *
32
+ * if (createdSessionId && setActive) {
33
+ * await setActive({ session: createdSessionId });
34
+ * }
35
+ * } catch (err) {
36
+ * console.error('Google Authentication error:', err);
37
+ * }
38
+ * };
39
+ *
40
+ * return <Button title="Sign in with Google" onPress={onPress} />;
41
+ * }
42
+ * ```
43
+ *
44
+ * @platform iOS, Android - This hook only works on iOS and Android. On other platforms, it will throw an error.
45
+ *
46
+ * @returns An object containing the `startGoogleAuthenticationFlow` function that throws an error
47
+ */
48
+ export declare function useSignInWithGoogle(): {
49
+ startGoogleAuthenticationFlow: (startGoogleAuthenticationFlowParams?: StartGoogleAuthenticationFlowParams) => Promise<StartGoogleAuthenticationFlowReturnType>;
50
+ };
51
+ export {};
52
+ //# sourceMappingURL=useSignInWithGoogle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSignInWithGoogle.d.ts","sourceRoot":"","sources":["../src/useSignInWithGoogle.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAIrF,KAAK,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpD,MAAM,MAAM,mCAAmC,GAAG;IAChD,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG;IACpD,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,MAAM,CAAC,EAAE,cAAc,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,mBAAmB,IAAI;IACrC,6BAA6B,EAAE,CAC7B,mCAAmC,CAAC,EAAE,mCAAmC,KACtE,OAAO,CAAC,uCAAuC,CAAC,CAAC;CACvD,CAaA"}
@@ -0,0 +1,46 @@
1
+ export type { StartGoogleAuthenticationFlowParams, StartGoogleAuthenticationFlowReturnType, } from './useSignInWithGoogle.types';
2
+ /**
3
+ * Hook for native Google Authentication on iOS using Clerk's built-in Google Sign-In module.
4
+ *
5
+ * This hook provides a simplified way to authenticate users with their Google account
6
+ * using the native iOS Google Sign-In UI. The authentication flow automatically
7
+ * handles the ID token exchange with Clerk's backend and manages the transfer flow
8
+ * between sign-in and sign-up.
9
+ *
10
+ * Features:
11
+ * - Native Google Sign-In UI
12
+ * - Built-in nonce support for replay attack protection
13
+ * - No additional dependencies required
14
+ *
15
+ * @example
16
+ * ```tsx
17
+ * import { useSignInWithGoogle } from '@clerk/expo-google-signin';
18
+ * import { Button } from 'react-native';
19
+ *
20
+ * function GoogleSigninButton() {
21
+ * const { startGoogleAuthenticationFlow } = useSignInWithGoogle();
22
+ *
23
+ * const onPress = async () => {
24
+ * try {
25
+ * const { createdSessionId, setActive } = await startGoogleAuthenticationFlow();
26
+ *
27
+ * if (createdSessionId && setActive) {
28
+ * await setActive({ session: createdSessionId });
29
+ * }
30
+ * } catch (err) {
31
+ * console.error('Google Authentication error:', err);
32
+ * }
33
+ * };
34
+ *
35
+ * return <Button title="Sign in with Google" onPress={onPress} />;
36
+ * }
37
+ * ```
38
+ *
39
+ * @platform iOS - This is the iOS-specific implementation using Google Sign-In SDK
40
+ *
41
+ * @returns An object containing the `startGoogleAuthenticationFlow` function
42
+ */
43
+ export declare const useSignInWithGoogle: () => {
44
+ startGoogleAuthenticationFlow: (startGoogleAuthenticationFlowParams?: import("./useSignInWithGoogle.types").StartGoogleAuthenticationFlowParams) => Promise<import("./useSignInWithGoogle.types").StartGoogleAuthenticationFlowReturnType>;
45
+ };
46
+ //# sourceMappingURL=useSignInWithGoogle.ios.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSignInWithGoogle.ios.d.ts","sourceRoot":"","sources":["../src/useSignInWithGoogle.ios.ts"],"names":[],"mappings":"AACA,YAAY,EACV,mCAAmC,EACnC,uCAAuC,GACxC,MAAM,6BAA6B,CAAC;AAErC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,mBAAmB;;CAA2D,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var useSignInWithGoogle_ios_exports = {};
20
+ __export(useSignInWithGoogle_ios_exports, {
21
+ useSignInWithGoogle: () => useSignInWithGoogle
22
+ });
23
+ module.exports = __toCommonJS(useSignInWithGoogle_ios_exports);
24
+ var import_useSignInWithGoogle = require("./useSignInWithGoogle.shared");
25
+ const useSignInWithGoogle = (0, import_useSignInWithGoogle.createUseSignInWithGoogle)({ requiresIosClientId: true });
26
+ // Annotate the CommonJS export names for ESM import in node:
27
+ 0 && (module.exports = {
28
+ useSignInWithGoogle
29
+ });
30
+ //# sourceMappingURL=useSignInWithGoogle.ios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/useSignInWithGoogle.ios.ts"],"sourcesContent":["import { createUseSignInWithGoogle } from './useSignInWithGoogle.shared';\nexport type {\n StartGoogleAuthenticationFlowParams,\n StartGoogleAuthenticationFlowReturnType,\n} from './useSignInWithGoogle.types';\n\n/**\n * Hook for native Google Authentication on iOS using Clerk's built-in Google Sign-In module.\n *\n * This hook provides a simplified way to authenticate users with their Google account\n * using the native iOS Google Sign-In UI. The authentication flow automatically\n * handles the ID token exchange with Clerk's backend and manages the transfer flow\n * between sign-in and sign-up.\n *\n * Features:\n * - Native Google Sign-In UI\n * - Built-in nonce support for replay attack protection\n * - No additional dependencies required\n *\n * @example\n * ```tsx\n * import { useSignInWithGoogle } from '@clerk/expo-google-signin';\n * import { Button } from 'react-native';\n *\n * function GoogleSigninButton() {\n * const { startGoogleAuthenticationFlow } = useSignInWithGoogle();\n *\n * const onPress = async () => {\n * try {\n * const { createdSessionId, setActive } = await startGoogleAuthenticationFlow();\n *\n * if (createdSessionId && setActive) {\n * await setActive({ session: createdSessionId });\n * }\n * } catch (err) {\n * console.error('Google Authentication error:', err);\n * }\n * };\n *\n * return <Button title=\"Sign in with Google\" onPress={onPress} />;\n * }\n * ```\n *\n * @platform iOS - This is the iOS-specific implementation using Google Sign-In SDK\n *\n * @returns An object containing the `startGoogleAuthenticationFlow` function\n */\nexport const useSignInWithGoogle = createUseSignInWithGoogle({ requiresIosClientId: true });\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAA0C;AA+CnC,MAAM,0BAAsB,sDAA0B,EAAE,qBAAqB,KAAK,CAAC;","names":[]}