We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a7edec commit c3a683fCopy full SHA for c3a683f
1 file changed
OneSignalSDK/onesignal/core/src/main/java/com/onesignal/user/internal/LoginHelper.kt
@@ -40,8 +40,10 @@ internal class LoginHelper(
40
// Same-user refresh path (e.g. login(sameId, freshJwt) after a 401). Store the
41
// fresh token and wake the queue so any ops deferred by `hasValidJwtIfRequired`
42
// dispatch immediately — symmetric with `updateUserJwt`. putJwt no-ops on null.
43
- jwtTokenStore.putJwt(externalId, jwtBearerToken)
44
- operationRepo.forceExecuteOperations()
+ if (jwtBearerToken != null) {
+ jwtTokenStore.putJwt(externalId, jwtBearerToken)
45
+ operationRepo.forceExecuteOperations()
46
+ }
47
return null
48
}
49
0 commit comments