setSessionHook Example

sunny
Can someone gave me an example of how can I use setSessionHook to start a fresh login ?
  • tonystark
    Hi @sunny,

    setSessionHook accepts a callback function. You can try something like:
    setSessionHook(() => {
    console.log('session expired. login again')
    })
Sign In or Register to comment.