capacitor-auth-manager 3.1.0 → 3.1.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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,15 @@ All notable changes to `capacitor-auth-manager` are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [3.1.1] — 2026-10-29
9
+
10
+ ### Fixed
11
+
12
+ - **Android sign-in failures now reach logcat on release builds.** The native logger was off unless logging
13
+ was enabled, and the JS layer never forwards `enableLogging` to native, so a failed Google sign-in left
14
+ nothing in logcat. Warnings and errors are now always written (tag `CapacitorAuthManager`); debug and info
15
+ stay opt-in. They carry codes, the package name and the signing SHA-1 — never an email address or token.
16
+
8
17
  ## [3.1.0] — 2026-10-29
9
18
 
10
19
  ### Fixed
@@ -73,10 +73,12 @@ public class AuthLogger {
73
73
  log(LogLevel.WARN, message, args);
74
74
  }
75
75
 
76
+ /**
77
+ * Always written, like {@link #warn}: a failed sign-in must be readable in logcat on a release build,
78
+ * where the JS side never enables native logging. Messages carry codes, the package name and the
79
+ * signing SHA-1 — never an email address or a token.
80
+ */
76
81
  public void error(String message, Throwable throwable) {
77
- if (!isEnabled || LogLevel.ERROR.getValue() < logLevel.getValue()) {
78
- return;
79
- }
80
82
 
81
83
  if (throwable != null) {
82
84
  Log.e(tag, formatMessage(message), throwable);
@@ -86,7 +88,9 @@ public class AuthLogger {
86
88
  }
87
89
 
88
90
  private void log(LogLevel level, String message, Object... args) {
89
- if (!isEnabled || level.getValue() < logLevel.getValue()) {
91
+ // WARN and ERROR always reach logcat (see error()); DEBUG and INFO follow enableLogging/logLevel.
92
+ boolean alwaysLogged = level.getValue() >= LogLevel.WARN.getValue();
93
+ if (!alwaysLogged && (!isEnabled || level.getValue() < logLevel.getValue())) {
90
94
  return;
91
95
  }
92
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-auth-manager",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Capacitor + web authentication. Firebase-agnostic native & web Google sign-in (idToken/accessToken) for React, Vue, Angular and vanilla JS — a drop-in alternative to @codetrix-studio/capacitor-google-auth. More providers shipping one at a time.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",