When the sample starts, it does a prompt=none to the Curity server. If the user is logged in, an ID token is issued. If not, then an error is returned. In the former, non-error case, the UI should update to not have a "Login" button, but instead say something like "Welcome $USER" where $USER is the sub from the ID token's body (which is JSON). Then, the "Call API" button should be shown instead of the "Login" one.
When the sample starts, it does a
prompt=noneto the Curity server. If the user is logged in, an ID token is issued. If not, then an error is returned. In the former, non-error case, the UI should update to not have a "Login" button, but instead say something like "Welcome $USER" where$USERis thesubfrom the ID token's body (which is JSON). Then, the "Call API" button should be shown instead of the "Login" one.