I have a Jmix web app and wondering why I am seeing so many records in the following oauth tables:
oauth_access_token (238,974 records)
oauth_refresh_token (240,056 records)
each of those tables are over 2G of space in the database.
I have a mobile component that connects to my Jmix data via REST API
But now I am wondering why are those tables so large ?
I DO NOT have the following properties in ‘application.properties’ set:
jmix.security.oauth2.client-token-expiration-time-sec
jmix.security.oauth2.client-refresh-token-expiration-time-sec
If those properties expire tokens, then why do my tables keep building up ? They never decrease even though I am sure they have default values.
I have around 200 active user sessions .
It’s looks like Spring is unable to bulk remove those tokens from jdbc store. At least because expiration date doesn’t exist as a separate column but built into serialized object.
It removes/replaces expired token then works with it directly.