CredentialSession.ErrorCode.clientNotInForeground
Your app isn’t in the foreground, which is required to use the credential session.
Declaration
case clientNotInForegroundSee Also
Authorization and permission error codes
CredentialSession.ErrorCode.userNotAuthorizedCredentialSession.ErrorCode.accessDeniedCredentialSession.ErrorCode.userCanceledAuthorizationCredentialSession.ErrorCode.userAuthorizationTimedOutCredentialSession.ErrorCode.featureUnavailableCredentialSession.ErrorCode.ineligibleCredentialSession.ErrorCode.conditionsNotSatisfied