Logout error. credentials_store is empty collection

Hi,

I’m running into a logout error on my flask webserver running on Linux.
When calling OIDC.credentials_store at the logout route there is no data contained within:

OAuth2Credentials.from_json(OIDC.credentials_store[info.get(‘sub’)])

Sometimes if I reboot the server it works for the whole login/logout process. Other times not.
Are these credentials stored as cookies somewhere on the linux server? Is there a way to clear them if this happens again?

Sometimes clearing the cookies/cache on the browser seems to help.
How are these credentials stored? Is there a better way to bind these credentials to the session so they don’t get lost?

I’m not sure if I’m asking the right questions so let me know if anything needs clarifying.

Thanks!

@BirdThunderford Hi, I suggest you can take a look the discussion here for the logout issue. You can use it as an example.