signOut

API for the signOut function

The signOut function is a function that will be used from the client side to sign out the user, after signing out, the session in createSession will be refetched and updated accordingly. This function takes 1 argument:

  • options - An object that contains the following properties:
    • redirectTo - A string that represents the path to redirect to after signing out, defaults to /

Usage

import { signOut } from '@solid-mediakit/auth/client'
signOut()
signOut({ redirectTo: '/auth' }) // redirect to /ok