{"action":"created","issue":{"url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/237","repository_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2","labels_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/237/comments","events_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/237/events","html_url":"https://github.com/dwyl/hapi-auth-jwt2/issues/237","id":228522910,"number":237,"title":"add support for activeDuration (or an example in the doc how to do that","user":{"login":"shai32","id":16700996,"avatar_url":"https://avatars1.githubusercontent.com/u/16700996?v=3","gravatar_id":"","url":"https://api.github.com/users/shai32","html_url":"https://github.com/shai32","followers_url":"https://api.github.com/users/shai32/followers","following_url":"https://api.github.com/users/shai32/following{/other_user}","gists_url":"https://api.github.com/users/shai32/gists{/gist_id}","starred_url":"https://api.github.com/users/shai32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shai32/subscriptions","organizations_url":"https://api.github.com/users/shai32/orgs","repos_url":"https://api.github.com/users/shai32/repos","events_url":"https://api.github.com/users/shai32/events{/privacy}","received_events_url":"https://api.github.com/users/shai32/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-14T06:51:08Z","updated_at":"2017-05-14T07:23:33Z","closed_at":null,"body":"<b>[activeDuration](https://stormpath.com/blog/everything-you-ever-wanted-to-know-about-node-dot-js-sessions)</b> allows users to lengthen their session by interacting with the site. If the session is 28 minutes old and the user sends another request, activeDuration will extend the session’s life for however long you define. In this case, 15 minutes.\r\nIn short, activeDuration prevents the app from logging a user out while they’re still using the site.\r\n\r\nexample why its important: \r\nlet say the user get a token with a long expiration date ( lets say 7 days)\r\nwhen he log in, he clicked on remember me.\r\nnow, the user uses the site every day, after 7 day, it still has his original token (that is stored in is browser)\r\nhe open the website, no login need (token has still 1 minute left), and then suddenly after 1 min of use, the website throw him out.\r\n\r\nthe user does not understand what happened and why.\r\n\r\nso we need a way to define some sort of activeDuration:\r\n\r\nit sound like a must have for any site that want a good user experience.\r\nam I wrong? what most site do?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/comments/301295817","html_url":"https://github.com/dwyl/hapi-auth-jwt2/issues/237#issuecomment-301295817","issue_url":"https://api.github.com/repos/dwyl/hapi-auth-jwt2/issues/237","id":301295817,"user":{"login":"nelsonic","id":194400,"avatar_url":"https://avatars0.githubusercontent.com/u/194400?v=3","gravatar_id":"","url":"https://api.github.com/users/nelsonic","html_url":"https://github.com/nelsonic","followers_url":"https://api.github.com/users/nelsonic/followers","following_url":"https://api.github.com/users/nelsonic/following{/other_user}","gists_url":"https://api.github.com/users/nelsonic/gists{/gist_id}","starred_url":"https://api.github.com/users/nelsonic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nelsonic/subscriptions","organizations_url":"https://api.github.com/users/nelsonic/orgs","repos_url":"https://api.github.com/users/nelsonic/repos","events_url":"https://api.github.com/users/nelsonic/events{/privacy}","received_events_url":"https://api.github.com/users/nelsonic/received_events","type":"User","site_admin":false},"created_at":"2017-05-14T07:23:33Z","updated_at":"2017-05-14T07:23:33Z","body":"@shai32 if `validateFunc` is limited, then use `verifyFunc` which gives you _complete_ freedom to implement _anything_."}}
{"actor":{"display_login":"nelsonic"}}