this component calls the identity service and displays an alert if the client code version is not supported by the identity service.
Depends on D9813
Differential D9814
[native] VersionSupportedChecker component varun on Nov 9 2023, 3:48 PM. Authored by Tags None Referenced Files
Details
this component calls the identity service and displays an alert if the client code version is not supported by the identity service. Depends on D9813 built the native app with an unsupported code version and saw the alert. built with the actual code version and no alert was displayed.
Diff Detail
Event Timeline
Comment Actions This technically works, but something is going on where an ESLint rule isn't firing... you COULD ignore that and the component will work fine, but it's best to follow the conventions to avoid potential future pitfalls
Comment Actions address feedback
Comment Actions This is a good start, but we should be doing the same stuff we do for the client_version_unsupported error from the keyserver:
At the least please make sure you use the exact same copy. Don't copy-paste; you should factor it out. Logging out the user can be handled in a separate diff if you'd prefer, just let me know.
Yes, but the code you have now does the same thing and doesn't break any of the "Rules of Hooks"
Comment Actions One last round here, this looks almost ready
Comment Actions
As a last step, can you make sure you try the console.error on the other platform? Eg. if you tried on iOS initially, can you try on Android as well? (As an alternative, you can simply replace the console.error with console.log) |