You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| clientId | string | The app's client ID, found and created in the Google Developers Console. |
188
182
| iosClientId | string | Specific client ID key for iOS |
189
183
| androidClientId | string | Specific client ID key for Android |
190
184
| scopes | string[]| Scopes that you might need to request to access Google APIs<br>https://developers.google.com/identity/protocols/oauth2/scopes|
191
185
| serverClientId | string | This ClientId used for offline access and server side handling |
192
186
| forceCodeForRefreshToken | boolean | Force user to select email address to regenerate AuthCode <br>used to get a valid refreshtoken (work on iOS and Android) |
193
187
194
-
195
188
Provide configuration in root `capacitor.config.json`
196
189
197
190
```json
@@ -226,6 +219,16 @@ export default config;
226
219
227
220
## Migration guide
228
221
222
+
#### Migrate from 3.1.x to 3.2.x
223
+
224
+
Install version 3.2.x:
225
+
226
+
```sh
227
+
npm i --save @codetrix-studio/capacitor-google-auth
228
+
```
229
+
230
+
Follow instruction for you project [Updating from Capacitor 3 to Capacitor 4](https://capacitorjs.com/docs/updating/4-0).
231
+
229
232
#### Migrate from 3.0.2 to 3.1.0
230
233
231
234
```diff
@@ -235,6 +238,12 @@ export default config;
235
238
236
239
#### Migrate from 2 to 3
237
240
241
+
Install version 3.x.x:
242
+
243
+
```sh
244
+
npm i --save @codetrix-studio/capacitor-google-auth@3
245
+
```
246
+
238
247
After [migrate to Capcitor 3](https://capacitorjs.com/docs/updating/3-0) updating you projects, see diff:
239
248
240
249
##### WEB
@@ -248,3 +257,17 @@ After [migrate to Capcitor 3](https://capacitorjs.com/docs/updating/3-0) updatin
248
257
+ GoogleAuth.init()
249
258
+ GoogleAuth.signIn()
250
259
```
260
+
261
+
#### Migrate from 1 to 2
262
+
263
+
Install version 2.x.x:
264
+
265
+
```sh
266
+
npm i --save @codetrix-studio/capacitor-google-auth@2
267
+
```
268
+
269
+
for capacitor 2.x.x use [instruction](https://github.com/CodetrixStudio/CapacitorGoogleAuth/blob/79129ab37288f5f5d0bb9a568a95890e852cebc2/README.md)
0 commit comments