I am nt able to log the user out from provider session

Hi we are using okta provider with next-auth packages. when we are trying to sign the user out from the application it logs the user out from app but not from the provider as the provider’s session is not getting empty.
tried using the below with signOut function when clicking on signout button like below.
{session && !loading && <>

            <a

            href={`/api/auth/signout`}

            className={styles.signOut}

            onClick={(e) => {

              e.preventDefault()
           
              // signOut({callbackUrl: `https:/${process.env.OKTA_ISSUER}/v1/logout?id_token_hint=${idToken}&post_logout_redirect_uri=${process.env.NEXTAUTH_URL}/signout`})

            }}

          >{t('signOut')} {' '}<FaSignOutAlt /></a>

            </>  

          }

Hi @medarma86

I think you are looking for the Okta community: Okta Help Center (Lightning)

This forum is for the Auth0 product.

John

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.