Skip to content

Redirect after clear #348

@BeSaad

Description

@BeSaad

Currently I have to do

const { clear } = useUserSession()

const onLogoutClick = async () => {
  await clear()
  router.push('/')
}

Im wondering If I can do better

sessionHooks.hook('clear', async (session, event) => {}) is not enough

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions