Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Problem

Hide button 'Sign in with Google' and 'Sign Up' for older version mobile app on the login page.

Solution 

This can be done by passing the query parameter with the login URL and displaying buttons only when the parameter has expected value. 

Implementation

These buttons will be hidden on the page by default so that it won't be displayed in the older app version. The buttons will be only displayed when if it finds `version=1` in query params. We can read this query parameter value in keycloak login theme javascript file and show these buttons. 

...