To distinguish between successful and unsuccessful signins please refer to this documentation.
"signInStatus” resource type provides the sign-in status (Success or Failure) of the sign-in.
Failure:
- errorCode - Provides the 5-6 digit error code that's generated during a sign-in failure.
- failureReason - Provides the error message or the reason for failure for the corresponding sign-in activity.
Success:
- errorCode 0 represents successful sign-in.
- failureReason – other represents successful sign-in
Please refer to this documentation for more details.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.