Commit 2ef3974
committed
fix(capacitor): don't log out on Android refresh failure; resolve {success} (FR-25946)
android FronteggNativePlugin.refreshToken() did logout(...) whenever refreshTokenIfNeeded()
returned false, so a transient network error during an app-initiated refresh destroyed the
session — undocumented, destructive, and divergent from iOS (which just resolves {success:false}).
Resolve { success } and leave the session intact, matching iOS.1 parent dcfb6e5 commit 2ef3974
1 file changed
Lines changed: 7 additions & 8 deletions
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
297 | 296 | | |
298 | 297 | | |
299 | 298 | | |
| |||
0 commit comments