‘No credentials were found in the store’ error is thrown from iOS Auth0 SDK while trying to refresh Token.
This is a random issue. Not able to reproduce the actual scenario for this. But Observed Server logs for this issue happening for multiple users.
Code is as below
let publisher = self.credentialsManager.credentials(minTTL: Constants.minimumTTL)
.map { [weak self] _ in
Log.authentication.info("auth - refresh token successful")
return true
}
.mapError { [weak self] error in
self?.credentials = nil
Log.authentication.error("auth - refresh token failed: %@", error.debugDescription)
}
.receive(on: DispatchQueue.main)
.handleEvents(receiveCompletion: { [weak self] _ in
})
.share()
.eraseToAnyPublisher()
The response block comes with enum .noCredentials and message “No credentials were found in the store”
New contributor
Sajeev Rai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.