Skip to content
Discussion options

You must be logged in to vote
<a
    href="#"
    onClick={async () => {
        await logoutMutation()
        try {
            router.replace(`https://${process.env.NEXT_PUBLIC_AUTH0_DOMAIN}/v2/logout?
            client_id=${process.env.NEXT_PUBLIC_AUTH0_CLIENT_ID}&returnTo=${process.env.RETURN_URL}`)
        } catch (error) {
            console.log(error)
        }
    }}
>
    Sign out
</a>

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by flybayer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #2651 on August 19, 2021 20:51.