angular-auth-oidc-client icon indicating copy to clipboard operation
angular-auth-oidc-client copied to clipboard

[Feature Request]: Expose "authorizedCallback Validation, iat rejected id_token was issued too far away from the current time" warning message through LoginResponse errorMessage property

Open chetance99 opened this issue 2 years ago • 1 comments

Currently, when the client machine date/time is out of sync, the OIDC callback function logs a warning message that states "authorizedCallback Validation, iat rejected id_token was issued too far away from the current time". However, this warning message is not exposed to the application through the errorMessage property of the LoginResponse.

I would like to request that this warning message be exposed through the errorMessage property of the LoginResponse so that applications can provide a user-friendly error message to users when their machine date/time is out of sync. Alternatively, a different variable could be added to the LoginResponse specifically for this warning message.

I believe that this feature would greatly improve the user experience and make it easier for developers to handle out-of-sync client machine date/time errors in their applications.

Thank you for considering this feature request.

chetance99 avatar May 10 '23 10:05 chetance99

We occasionally (once per month) had customers calling in with an unexplainable error, that defied reproduction. Today I had another and finally figured out why this was. Their PCs did not have the correct time. It would be really nice if that message was properly exposed.

Ghostbird avatar Sep 20 '23 12:09 Ghostbird