How is logout time determined?

How is logout time determined? Is it straight seconds from the login time?

Or how can I prolong login time:

  • After each query to IC network?
  • After each shared call to IC network?
  • After each mouse move over my app’s window?
1 Like

https://agent-js.icp.xyz/auth-client/interfaces/IdleOptions.html#idleTimeout

const client = await AuthClient.create({
  idleOptions: {
    // timeout in ms
    idleTimeout: 600_000 // 30 minutes
  }
})
1 Like