so im using Flask pyoidc (OAuth) as authentification and authorization for my Dash Tool.
Im stuck at getting the User Role Information only once at the start of opening my tool.
I thought about doing this with sessin Store, but relogging on a different Account kept the old User Role.
Hidden Div is not really an option, but even that does not work. The Div gets the User Role. And on every page load i check if children of the div i keep the user role, is empty or not. And even when the div contains the user role, it still goes to check the user role. But ofc after 5 minutes the acces token expires and it returns a signature expired error. Any help? I feel like my brain isnt working atm haha