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>
</>
}