Link Button on Homescreen on iPhone does not work

The problem below exists only for iOS devices (Chrom on Andoid works as expected).
For quick access to my app I want to add a homescreen icons on the desktop. After login on Auth0 I end up on the actual app. Then adding the app to the homescreen cerates an icon but when I try lo launch the app via the homescreen icon the following error apprears:
{ error: “invalid_token”, error_description: “‘state’ does not match”}
It seems that the URL behind the homescreen icon contains an access_token/state which is not valid anymore:
https://ccm-mobile-staging.herokuapp.com/callback/#access_token=eyJ0eXAiOiJKV1QiLCJhbGci...&expires_in=7200&token_type=Bearer&state=4VQhV3D1uf6sjxJVZ51mqHe.E3nT2KfU
Did anybody had similar problems with iOS homescreen icons? Any suggestions?

Solved by programatically removing the GET-params with:
window.history.pushState({}, document.title, ‘/’);
window.location.replace(‘/’);

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.