When I call signoutSilent() it produces a proper logout request to OIDC provider which in turn responds almost immediately (<60ms), BUT... the promise returned from signoutSilent() resolves after about 10 seconds(!)
In this time auth.isLoading is also true and switches to false after 10s.
What's going on here? Please help me to figure out what's wrong on my side...
import { useAuth } from 'react-oidc-context'
...
const auth = useAuth()
...
const onLogoutButtonClick = () => {
auth.signoutSilent().finally(() => {
// this code is executed after 10s!
console.log('now!')
...
})
}