Skip to content

fix: iOS logs out after long period #195

@jaxnz

Description

@jaxnz

Description

On iOS, once a user has authenticated, and the app is put into the background after a long period of time, when resuming the app there is no token refresh, even though refresh token is 90 days.

Steps To Reproduce

  1. Login in to OIDC Server (Keycloak)
  2. Put app into background and wait between 1-24 hours
  3. When app is resumed, token is not refreshed and only way to get it working again is to hard close app and have to re-login again.

Expected Behavior

When app is resumed token should refresh.

Additional Context

I believe this is due to how cookies are handled on iOS - but I was under the assumption that it was stored locally? We are using OidcDefaultStore as the store.

It works perfectly fine for android.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions