Skip to content

signout promise is really slow - resolves after 10s #1754

@lichwala

Description

@lichwala

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!')
      ...
  })
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions