capacitor-auth-manager 2.3.0 → 2.4.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.
Files changed (141) hide show
  1. package/CHANGELOG.md +149 -0
  2. package/CapacitorAuthManager.podspec +1 -1
  3. package/LICENSE +1 -1
  4. package/Readme.md +136 -595
  5. package/android/build.gradle +8 -2
  6. package/android/src/main/java/com/aoneahsan/capacitor_auth_manager/CapacitorAuthManager.java +43 -15
  7. package/android/src/main/java/com/aoneahsan/capacitor_auth_manager/CapacitorAuthManagerPlugin.java +24 -3
  8. package/android/src/main/java/com/aoneahsan/capacitor_auth_manager/GoogleAuthProvider.java +427 -226
  9. package/android/src/main/java/com/aoneahsan/capacitor_auth_manager/ProviderFactory.java +28 -0
  10. package/dist/angular.cjs.js +971 -4542
  11. package/dist/core.cjs.js +944 -4514
  12. package/dist/esm/angular/auth.guard.js +0 -1
  13. package/dist/esm/angular/auth.module.d.ts +2 -1
  14. package/dist/esm/angular/auth.module.js +0 -1
  15. package/dist/esm/angular/auth.service.d.ts +5 -5
  16. package/dist/esm/angular/auth.service.js +0 -1
  17. package/dist/esm/angular/index.d.ts +1 -0
  18. package/dist/esm/angular/index.js +4 -1
  19. package/dist/esm/capacitor-plugin.js +0 -1
  20. package/dist/esm/core/auth-manager.d.ts +6 -0
  21. package/dist/esm/core/auth-manager.js +27 -4
  22. package/dist/esm/core/index.js +0 -1
  23. package/dist/esm/core/platform.js +0 -1
  24. package/dist/esm/core/provider-manifests.js +0 -1
  25. package/dist/esm/core/provider-registry.d.ts +9 -2
  26. package/dist/esm/core/provider-registry.js +63 -57
  27. package/dist/esm/core/types.js +0 -1
  28. package/dist/esm/definitions.d.ts +30 -1
  29. package/dist/esm/definitions.js +8 -1
  30. package/dist/esm/index.js +0 -1
  31. package/dist/esm/providers/base-provider.js +0 -1
  32. package/dist/esm/providers/native/google-native-provider.d.ts +26 -0
  33. package/dist/esm/providers/native/google-native-provider.js +114 -0
  34. package/dist/esm/providers/oauth-provider.js +0 -1
  35. package/dist/esm/providers/provider-factory.d.ts +9 -0
  36. package/dist/esm/providers/provider-factory.js +20 -57
  37. package/dist/esm/providers/web/google-provider.d.ts +70 -92
  38. package/dist/esm/providers/web/google-provider.js +262 -205
  39. package/dist/esm/providers/web/index.d.ts +0 -14
  40. package/dist/esm/providers/web/index.js +7 -16
  41. package/dist/esm/react/hooks.js +0 -1
  42. package/dist/esm/react/index.d.ts +1 -0
  43. package/dist/esm/react/index.js +4 -1
  44. package/dist/esm/react/types.js +0 -1
  45. package/dist/esm/utils/auth-error.js +0 -1
  46. package/dist/esm/utils/error-message.d.ts +8 -0
  47. package/dist/esm/utils/error-message.js +20 -0
  48. package/dist/esm/utils/event-emitter.js +0 -1
  49. package/dist/esm/utils/logger.js +0 -1
  50. package/dist/esm/utils/pending-verification-store.js +0 -1
  51. package/dist/esm/utils/storage.d.ts +11 -6
  52. package/dist/esm/utils/storage.js +3 -2
  53. package/dist/esm/vue/composables.js +0 -1
  54. package/dist/esm/vue/index.d.ts +1 -0
  55. package/dist/esm/vue/index.js +4 -1
  56. package/dist/esm/web.js +0 -1
  57. package/dist/plugin.cjs.js +468 -4663
  58. package/dist/plugin.js +468 -4663
  59. package/dist/react.cjs.js +972 -4543
  60. package/dist/vue.cjs.js +972 -4543
  61. package/ios/Plugin/CapacitorAuthManager.swift +6 -6
  62. package/ios/Plugin/GoogleAuthProvider.swift +213 -105
  63. package/ios/Plugin/Models.swift +35 -4
  64. package/package.json +31 -30
  65. package/dist/angular.cjs.js.map +0 -1
  66. package/dist/core.cjs.js.map +0 -1
  67. package/dist/esm/angular/auth.guard.js.map +0 -1
  68. package/dist/esm/angular/auth.module.js.map +0 -1
  69. package/dist/esm/angular/auth.service.js.map +0 -1
  70. package/dist/esm/angular/index.js.map +0 -1
  71. package/dist/esm/capacitor-plugin.js.map +0 -1
  72. package/dist/esm/core/auth-manager.js.map +0 -1
  73. package/dist/esm/core/index.js.map +0 -1
  74. package/dist/esm/core/platform.js.map +0 -1
  75. package/dist/esm/core/provider-manifests.js.map +0 -1
  76. package/dist/esm/core/provider-registry.js.map +0 -1
  77. package/dist/esm/core/types.js.map +0 -1
  78. package/dist/esm/definitions.js.map +0 -1
  79. package/dist/esm/index.js.map +0 -1
  80. package/dist/esm/providers/base-provider.js.map +0 -1
  81. package/dist/esm/providers/oauth-provider.js.map +0 -1
  82. package/dist/esm/providers/provider-factory.js.map +0 -1
  83. package/dist/esm/providers/web/apple-provider.d.ts +0 -61
  84. package/dist/esm/providers/web/apple-provider.js +0 -293
  85. package/dist/esm/providers/web/apple-provider.js.map +0 -1
  86. package/dist/esm/providers/web/biometric-provider.d.ts +0 -60
  87. package/dist/esm/providers/web/biometric-provider.js +0 -368
  88. package/dist/esm/providers/web/biometric-provider.js.map +0 -1
  89. package/dist/esm/providers/web/email-code-provider.d.ts +0 -46
  90. package/dist/esm/providers/web/email-code-provider.js +0 -294
  91. package/dist/esm/providers/web/email-code-provider.js.map +0 -1
  92. package/dist/esm/providers/web/email-password-provider.d.ts +0 -52
  93. package/dist/esm/providers/web/email-password-provider.js +0 -429
  94. package/dist/esm/providers/web/email-password-provider.js.map +0 -1
  95. package/dist/esm/providers/web/facebook-provider.d.ts +0 -80
  96. package/dist/esm/providers/web/facebook-provider.js +0 -249
  97. package/dist/esm/providers/web/facebook-provider.js.map +0 -1
  98. package/dist/esm/providers/web/firebase-provider.d.ts +0 -22
  99. package/dist/esm/providers/web/firebase-provider.js +0 -338
  100. package/dist/esm/providers/web/firebase-provider.js.map +0 -1
  101. package/dist/esm/providers/web/github-provider.d.ts +0 -34
  102. package/dist/esm/providers/web/github-provider.js +0 -325
  103. package/dist/esm/providers/web/github-provider.js.map +0 -1
  104. package/dist/esm/providers/web/google-provider.js.map +0 -1
  105. package/dist/esm/providers/web/index.js.map +0 -1
  106. package/dist/esm/providers/web/linkedin-provider.d.ts +0 -37
  107. package/dist/esm/providers/web/linkedin-provider.js +0 -178
  108. package/dist/esm/providers/web/linkedin-provider.js.map +0 -1
  109. package/dist/esm/providers/web/magic-link-provider.d.ts +0 -44
  110. package/dist/esm/providers/web/magic-link-provider.js +0 -311
  111. package/dist/esm/providers/web/magic-link-provider.js.map +0 -1
  112. package/dist/esm/providers/web/microsoft-provider.d.ts +0 -23
  113. package/dist/esm/providers/web/microsoft-provider.js +0 -236
  114. package/dist/esm/providers/web/microsoft-provider.js.map +0 -1
  115. package/dist/esm/providers/web/phone-password-provider.d.ts +0 -63
  116. package/dist/esm/providers/web/phone-password-provider.js +0 -440
  117. package/dist/esm/providers/web/phone-password-provider.js.map +0 -1
  118. package/dist/esm/providers/web/slack-provider.d.ts +0 -39
  119. package/dist/esm/providers/web/slack-provider.js +0 -175
  120. package/dist/esm/providers/web/slack-provider.js.map +0 -1
  121. package/dist/esm/providers/web/sms-provider.d.ts +0 -46
  122. package/dist/esm/providers/web/sms-provider.js +0 -306
  123. package/dist/esm/providers/web/sms-provider.js.map +0 -1
  124. package/dist/esm/providers/web/username-password-provider.d.ts +0 -59
  125. package/dist/esm/providers/web/username-password-provider.js +0 -434
  126. package/dist/esm/providers/web/username-password-provider.js.map +0 -1
  127. package/dist/esm/react/hooks.js.map +0 -1
  128. package/dist/esm/react/index.js.map +0 -1
  129. package/dist/esm/react/types.js.map +0 -1
  130. package/dist/esm/utils/auth-error.js.map +0 -1
  131. package/dist/esm/utils/event-emitter.js.map +0 -1
  132. package/dist/esm/utils/logger.js.map +0 -1
  133. package/dist/esm/utils/pending-verification-store.js.map +0 -1
  134. package/dist/esm/utils/storage.js.map +0 -1
  135. package/dist/esm/vue/composables.js.map +0 -1
  136. package/dist/esm/vue/index.js.map +0 -1
  137. package/dist/esm/web.js.map +0 -1
  138. package/dist/plugin.cjs.js.map +0 -1
  139. package/dist/plugin.js.map +0 -1
  140. package/dist/react.cjs.js.map +0 -1
  141. package/dist/vue.cjs.js.map +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,149 @@
1
+ # Changelog
2
+
3
+ All notable changes to `capacitor-auth-manager` are documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [2.4.1] — 2026-06-30
9
+
10
+ **Google-first production refocus.** This release turns the package into a working, **Firebase-agnostic
11
+ Google authentication plugin** across **web, iOS and Android** — a drop-in alternative to
12
+ `@codetrix-studio/capacitor-google-auth`. The remaining providers are being re-enabled **one at a time**
13
+ as each is hardened and verified on device; until then they report a clear `PROVIDER_NOT_ENABLED` error.
14
+
15
+ > **Versioning note:** by maintainer choice this is a **patch**. Future providers land as **minor** bumps,
16
+ > fixes as patches, and a `3.0.0` only once all providers are working again. If your app used a non-Google
17
+ > provider on `2.4.0`, stay on `2.4.0` until that provider is re-enabled.
18
+
19
+ > **Native build caveat:** the iOS (Swift) and Android (Java) sources in this release were written to the
20
+ > official SDK contracts but are **not compiled in CI**. Validate `2.4.1` in **one** app (web + one Android
21
+ > device + one iOS device) before rolling it out to a fleet.
22
+
23
+ ### Added
24
+
25
+ - **Native dispatch.** `auth.signIn(AuthProvider.GOOGLE)` (and the React/Vue/Angular `useAuth().signIn`)
26
+ now route to the **native Google SDK on iOS/Android** and to **Google Identity Services on web** — the
27
+ same call on every platform. Previously the modern API always ran the web flow, even inside a device webview.
28
+ - **`GoogleNativeProvider`** — a platform-bridge provider that delegates to the `CapacitorAuthManager`
29
+ Capacitor plugin (native Google SDK) and returns `{ idToken, accessToken?, serverAuthCode?, user }`.
30
+ - **Android Google rebuilt on Credential Manager** (`androidx.credentials` + `GoogleIdTokenCredential`),
31
+ replacing the deprecated, broken `GoogleSignIn` activity-result path (which never resolved).
32
+ - **Web Google rebuilt on the GIS id-token flow** (`google.accounts.id`) — no client secret, no backend;
33
+ returns a Google `idToken` you can feed to `signInWithCredential(GoogleAuthProvider.credential(idToken))`.
34
+ - `AuthCredential.serverAuthCode`, `GoogleAuthOptions.iosClientId` / `filterByAuthorizedAccounts` /
35
+ `autoSelectEnabled` / `nonce`, and `AuthErrorCode.PROVIDER_NOT_ENABLED`.
36
+
37
+ ### Changed
38
+
39
+ - **Only Google is enabled.** The other 14 providers are un-registered and excluded from the published
40
+ build; their web implementations remain in the repo for re-enablement. `signIn()` for any of them throws
41
+ `AuthErrorCode.PROVIDER_NOT_ENABLED` with a clear message.
42
+ - **No secrets persisted by default.** The manager no longer writes `idToken` / `accessToken` /
43
+ `refreshToken` / `serverAuthCode` to the default (unencrypted) storage — only a non-secret session
44
+ snapshot. Short-lived tokens are re-derived via the provider's silent restore. Inject a secure storage
45
+ adapter if you want token persistence.
46
+ - **Packaging:** `prepack` now builds `dist/` (so `npm pack` produces an importable tarball, not just
47
+ `npm publish`); `prepublishOnly` runs build + lint; added `engines.node >=18`; `@angular/core` peer range
48
+ widened to include `^22`; `CHANGELOG.md` now ships; added `./package.json` export; LICENSE copyright
49
+ updated to 2024–2026.
50
+
51
+ ### Fixed
52
+
53
+ - iOS Google: `emailVerified` was wrongly derived from the profile image; replaced the deprecated
54
+ `UIApplication.shared.windows` presenter lookup.
55
+ - Web Google: removed the insecure client-side OAuth code→token exchange that required a `client_secret`
56
+ in the browser.
57
+
58
+ ## [2.4.0] — 2026-05-27
59
+
60
+ **No runtime behavior change.** Type-safety and tooling cleanup. Public types were tightened (see below), so TypeScript consumers may surface new, helpful type errors — hence a minor (not patch) bump. No public method was removed or renamed.
61
+
62
+ ### Changed (type safety)
63
+
64
+ - Eliminated **all 37 remaining `no-explicit-any`** occurrences — the linter now reports **0 errors and 0 warnings**.
65
+ - **`StorageInterface` is now generic**: `get<T = unknown>(key): Promise<T | null>` and `set<T = unknown>(key, value: T)` (was `Promise<any>` / `value: any`). Existing custom-storage implementations remain compatible; direct callers now get `unknown` by default and should pass a type argument (`storage.get<AuthUser>(key)`) or narrow.
66
+ - **Angular adapter** method parameters now use real types instead of `any`: `configure(config: AuthManagerConfig)`, `initialize(config?)`, `signIn(options?)`, `signOut(options?: SignOutOptions)`, and `AuthModuleConfig.providers: Record<string, ProviderOptions>`.
67
+ - `catch (error: any)` blocks across the credential/biometric/registry providers now use a shared `getErrorMessage(error: unknown)` helper (`src/utils/error-message.ts`).
68
+ - `provider-registry` loader types and `platform` checks narrowed from `any` to precise types; `phone-password` backend payload and `biometric` credential params are now typed.
69
+ - Genuinely dynamic boundaries (optional-peer-dependency dynamic imports of `@capacitor/preferences` and `capacitor-biometric-authentication`) retain a single documented `// eslint-disable-next-line` instead of an undocumented `any`.
70
+
71
+ ### Changed (tooling)
72
+
73
+ - Completed the ESLint 9→10 migration started in 2.2.0: renamed `eslint.config.js` → `eslint.config.mjs` and migrated the deprecated `.eslintignore` into the flat config's `ignores`. `npm run lint` output is now free of deprecation notices.
74
+
75
+ ## [2.3.0] — 2026-05-26
76
+
77
+ **No breaking changes.** Backward-compatible minor release. This is an **internal refactor only** — no public method signature, runtime behavior, or provider list changed. There are still **15 web providers**.
78
+
79
+ ### Internal
80
+
81
+ - Completed audit finding **F-39**: the 7 web providers that previously implemented `AuthProviderInterface` directly (`magic-link`, `sms`, `email-code`, `email-password`, `username-password`, `phone-password`, `biometric`) now extend the shared `BaseAuthProvider` — the same base used by the OAuth and Firebase providers. All **15** web providers now share one construction, event, state, and capability-detection path, removing the duplicated lifecycle/state machinery the audit flagged.
82
+ - Provider constructors accept **either** the injected `BaseProviderConfig` (factory/registry path) **or** the provider's own bare config object (direct construction), via a shared `resolveProviderConfig` helper. Existing `new XProvider(config)` usage from `capacitor-auth-manager/providers/web` keeps working unchanged.
83
+ - Per-provider `linkAccount`/`unlinkAccount` no-op throwers were removed in favor of `BaseAuthProvider`'s `OPERATION_NOT_ALLOWED` defaults (completing F-44). Provider-specific capability behavior is preserved (biometric `unlinkAccount` and magic-link/sms/email-code `revokeAccess` still clear their stored/pending state).
84
+ - Base capability-default error messages reworded to a consistent "… is not supported by provider …".
85
+ - `no-explicit-any` lint warnings reduced from 45 to 37.
86
+
87
+ ### Verification
88
+
89
+ - `npm run build` clean · `npm run test:run` → 79 pass · `npm run lint` → 0 errors (37 warnings).
90
+
91
+ ## [2.2.0] — 2026-05-26
92
+
93
+ **No breaking changes.** This is a backward-compatible minor release — no public method signature was removed or changed in a breaking way. It repairs broken runtime paths, hardens security, completes the stub providers, and updates dependencies. There are **15 web providers**: apple, biometric, email-code, email-password, facebook, firebase, github, google, linkedin, magic-link, microsoft, phone-password, slack, sms, username-password.
94
+
95
+ ### Dependencies
96
+
97
+ - Updated all dependencies to current stable. Dev/build majors applied: `@types/node` 25, `eslint` 10, `typescript` 6, `@capacitor/*` 8, plus rollup, vitest, prettier, happy-dom, and others.
98
+ - Widened peer ranges so existing consumers are not broken:
99
+ - `@capacitor/core`: `^7.4.2 || ^8.0.0` (optional — only for the native plugin / `CapacitorPreferencesStorage`).
100
+ - `@angular/core`: extended through `^21.0.0`.
101
+ - `react` `16.8`–`19`, `vue` `^3` remain supported.
102
+ - `@capacitor/preferences` is an optional peer, required only for `CapacitorPreferencesStorage`.
103
+ - iOS podspec deployment target raised from 13.0 to 14.0.
104
+
105
+ ### Security
106
+
107
+ - **PKCE (S256)** added to the authorization-code OAuth flow (manual flows — Slack, LinkedIn) per RFC 7636: a `code_verifier` is generated and persisted with `state`/`nonce`, and `code_challenge` + `code_challenge_method=S256` are sent on the authorization request. Default-on for those flows; respects `pkceEnabled`. (Google uses Google Identity Services and Apple uses its SDK — both manage PKCE themselves.)
108
+ - **OIDC nonce + ID-token `exp` validation.** The returned ID token's `nonce` is compared to the stored value (`auth/invalid-nonce` on mismatch) and the `exp` claim is checked. ID-token **signatures are not verified client-side** — consumers must re-validate ID tokens against the provider's JWKS server-side before trusting claims.
109
+ - **Pluggable secure storage.** `configure()` accepts a `storage` option (any `StorageInterface`). New exported `CapacitorPreferencesStorage` backs storage with `@capacitor/preferences` (native key-value) so native tokens stay out of the webview's `localStorage`. The default web storage remains `localStorage`, which is readable by any XSS/third-party script — documented honestly; inject secure storage on native. Capacitor Preferences is not hardware-encrypted; use a Keychain/Keystore-backed adapter for secrecy at rest.
110
+ - **Biometric web fallback now uses real AES-GCM** with a non-extractable IndexedDB key, replacing base64 encoding (existing base64 values remain decodable for compatibility).
111
+ - **`client_secret` deprecated for browser use.** Browser-facing `clientSecret`/`appSecret` fields are no longer read in browser token/refresh/revoke calls (a secret in the JS bundle is recoverable) and emit a one-time warning when supplied in a web context. Fields kept for backward compatibility.
112
+ - **`AuthError.details` is sanitized** — token/password keys are redacted and only JSON-safe primitives are retained.
113
+ - CSPRNG (`crypto.randomUUID` / `crypto.getRandomValues`) used for UID fallbacks; developer-supplied credential endpoints warn if non-HTTPS.
114
+
115
+ ### Fixes
116
+
117
+ - **Primary `auth` API was broken at runtime for OAuth and credential providers** — the provider registry constructed `BaseAuthProvider` subclasses with raw options instead of a `BaseProviderConfig`, so storage/logger/options were `undefined`. The registry now builds a proper config and injects shared storage + logger. This repaired path is what the React/Vue/Angular adapters use.
118
+ - **Credential threading** — `auth.signIn({ provider, credentials })` now reaches credential providers correctly (credentials spread to where each provider reads them).
119
+ - **Provider name resolution** — underscore enum values (`username_password`, `email_code`, `phone_password`, `email_magic_link`) now resolve to the correct registry loaders; added missing loaders for `email-code` and `phone-password`.
120
+ - **Session restore** now runs after `configure()` supplies providers, so a persisted session is rehydrated on reload (previously the auto-init-in-constructor left it dead).
121
+ - **GitHub sign-in completes** via a developer-supplied `tokenExchangeProxy` (alias `tokenEndpoint`); the per-init `message` listener and popup interval no longer leak. Without a proxy, sign-in throws `auth/missing-config`.
122
+ - **Slack and LinkedIn fetch real user profiles** (Slack `openid.connect.userInfo`, LinkedIn `/v2/userinfo`) instead of returning hardcoded placeholder identities.
123
+ - **Firebase sign-in method** is derived from standard options/credentials, with a new `defaultMethod` fallback (previously branched on an undocumented field the manager never sent).
124
+ - **Microsoft** per-sign-in `scopes`/`loginHint`/`prompt` are mapped explicitly into the MSAL request.
125
+ - **Passwordless pending state** (SMS / email-code / magic-link) is persisted (non-secret metadata only) so verification survives reload/redirect.
126
+ - Auto-refresh timer no longer overflows the 32-bit `setTimeout` ceiling for far-future expiry; an untargeted `signOut` clears all refresh timers; `refreshToken` token access is null-guarded.
127
+ - `web.ts` `getIdToken` no longer double-parses already-parsed storage; `getCurrentUser` isolates per-provider failures and sets the current provider; Apple `refreshToken` returns `auth/operation-not-allowed`; SMS/email-code `refreshToken` return `auth/operation-not-allowed`.
128
+ - In-memory `persistence: 'memory'` now correctly maps to in-memory storage (previously fell through to `localStorage`).
129
+
130
+ ### Features
131
+
132
+ - **Account-management methods on the `auth` singleton** (and surfaced through the React/Vue/Angular adapters): `linkAccount`, `unlinkAccount`, `revokeAccess`, `getIdToken`, `updateProfile`, `deleteAccount`. Each delegates to the active provider and throws `auth/operation-not-allowed` if unsupported.
133
+ - New `isProviderConfigured(name)` and `getConfiguredProviders()` accessors on the singleton (also used by the adapters instead of reaching into private state).
134
+ - New config field `GitHubAuthOptions.tokenExchangeProxy` (alias `tokenEndpoint`) and `FirebaseAuthOptions.defaultMethod`.
135
+ - New exports: `WebStorage`, `CapacitorPreferencesStorage`, `StorageInterface`, and the shared `defaultLogger` (plus `Logger`, `LogLevel`, `LoggerConfig`).
136
+
137
+ ### Internal
138
+
139
+ - **Centralized logging.** All package logging routes through a `Logger`; zero direct `console.*` calls remain outside the logger module. Default level `warn`; adjustable via `VITE_LOG_LEVEL` / `LOG_LEVEL` (build-time) or `defaultLogger.setLevel()` (runtime). The logger deliberately does not patch the host's global `console` or read the host's `localStorage` (documented deviations appropriate for a published library).
140
+ - All standalone providers throw `AuthErrorCode` enum members instead of bare string codes; added additive enum members (e.g. `CREDENTIALS_REQUIRED`, `INVALID_CODE`, `CODE_EXPIRED`, `INVALID_TOKEN`, `STORAGE_ERROR`, `PROVIDER_UNSUPPORTED_OPERATION`).
141
+ - Typing: replaced `any` in exported public types with concrete types. One acknowledged widening to a precise type — `AuthManagerConfig.providers` is now `Record<string, ProviderOptions>` instead of `any`. Reduced SDK-boundary `any` (minimal interface shapes for Firebase/MSAL/Facebook/GitHub) and internal mapper typing (lint `no-explicit-any` warnings 138 → 45).
142
+ - Extracted provider manifest data into `provider-manifests.ts` (registry file 752 → 281 lines).
143
+ - tsconfig `moduleResolution` `node10` → `bundler`, `module` `ES2020` → `ESNext`, added `rootDir`; ESLint consolidated onto unified `typescript-eslint` (dropped the banned `@eslint/js`).
144
+
145
+ ### Verification
146
+
147
+ - `npm run build` succeeds; `npm run test:run` — 79 tests pass; `npm run lint` — 0 errors.
148
+
149
+ [2.2.0]: https://github.com/aoneahsan/capacitor-auth-manager/releases/tag/v2.2.0
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
  s.dependency 'Capacitor'
17
17
 
18
18
  # Auth Provider Dependencies
19
- s.dependency 'GoogleSignIn', '~> 7.0'
19
+ s.dependency 'GoogleSignIn', '~> 7.1'
20
20
  s.dependency 'FBSDKLoginKit', '~> 17.0'
21
21
 
22
22
  # Apple Sign In is built into iOS
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Ahsan Mahmood
3
+ Copyright (c) 2024-2026 Ahsan Mahmood
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal