AxaFrance / oidc-client

Light, Secure, Pure Javascript OIDC (Open ID Connect) Client. We provide also a REACT wrapper (compatible NextJS, etc.).
MIT License
570 stars 152 forks source link

Login Freeze in Safari #1388

Open leonardo-asad opened 2 weeks ago

leonardo-asad commented 2 weeks ago

Issue and Steps to Reproduce

Using Safari, the login freezes after the Identity Provider redirects to the application. So far I have found these issues in the following devices:

It seems that refreshing the page after it freezes makes the login process to complete.

The service workers seems to start

It freezes after this event:

Note: If I disable the service worker it works fine.

Versions

"@axa-fr/react-oidc": "7.22.7",

Expected

To complete the Login process normally using Safari.

Actual

The login process get Stuck after the Identity provider redirects to the /authentication/callback route

Additional Details

image

guillaume-chervet commented 2 weeks ago

Oh thank you @leonardo-asad ,

Do you have a log from the console or something that can help to understand the problem. Which device run that version of Safari ?

leonardo-asad commented 1 week ago

The execution freeze right after this event (loginCallbackAsync_begin): image

I am using lambda test to test the web app on different devices. So far I have had this problem in the following devices:

I've tried with different iPhones using Safari and I got the same issue. Using MacBook works with Chrome but not with Safari.