kinde-oss / kinde-auth-pkce-js

Kinde vanilla JavaScript authentication for SPAs using PKCE flows. Can be used with Vue / Angular or any JS framework
https://kinde.com/docs/developer-tools/javascript-sdk/
MIT License
17 stars 11 forks source link

Bug: PWAs deployed to the Play Store on Samsung A52 need to use local storage #31

Open DaveOrDead opened 1 year ago

DaveOrDead commented 1 year ago

Prerequisites

Describe the issue

We are seeing an issue when the following conditions are met:

In this case the cookie seems to be unreadable by the device. It is fine when viewing in the browser, just not when installed as a PWA.

You can work around this by using the is_dangerously_use_local_storage escape hatch but this isn't recommended (as the name implies!)

Suggest we detect if the SDK is running on an installed PWA and fallback to local storage in that instance only.

Library URL

https://github.com/kinde-oss/kinde-auth-pkce-js/

Library version

3.0.16

Operating system(s)

Android

Operating system version(s)

Android v12

Further environment details

Reproducible test case URL

No response

Additional information

No response