{"action":"created","issue":{"url":"https://api.github.com/repos/jaredhanson/passport-oauth2/issues/27","labels_url":"https://api.github.com/repos/jaredhanson/passport-oauth2/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/jaredhanson/passport-oauth2/issues/27/comments","events_url":"https://api.github.com/repos/jaredhanson/passport-oauth2/issues/27/events","html_url":"https://github.com/jaredhanson/passport-oauth2/issues/27","id":63274882,"number":27,"title":"Question about oauth2 and user session","user":{"login":"dendril","id":29705,"avatar_url":"https://avatars.githubusercontent.com/u/29705?v=3","gravatar_id":"","url":"https://api.github.com/users/dendril","html_url":"https://github.com/dendril","followers_url":"https://api.github.com/users/dendril/followers","following_url":"https://api.github.com/users/dendril/following{/other_user}","gists_url":"https://api.github.com/users/dendril/gists{/gist_id}","starred_url":"https://api.github.com/users/dendril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dendril/subscriptions","organizations_url":"https://api.github.com/users/dendril/orgs","repos_url":"https://api.github.com/users/dendril/repos","events_url":"https://api.github.com/users/dendril/events{/privacy}","received_events_url":"https://api.github.com/users/dendril/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-20T17:59:58Z","updated_at":"2015-04-17T15:13:05Z","closed_at":"2015-04-17T15:13:05Z","body":"Hey all,\r\n\r\nI'm using this module to integrate with an OAuth 2.0 server. Everything works fine, but as part of the login, I want to simple store the `access_token` in the express session, and do not authenticate again till the token expires.\r\n\r\nWhich is the recommended way to handle this? Because I have read the code, and I didn't found a way to manage this in a clear way. Should I use 2 authentication strategies (first check in the session, and if the data is not present, just use the oauth2 strategy)?\r\n\r\nThanks in advance\r\n"},"comment":{"url":"https://api.github.com/repos/jaredhanson/passport-oauth2/issues/comments/94005971","html_url":"https://github.com/jaredhanson/passport-oauth2/issues/27#issuecomment-94005971","issue_url":"https://api.github.com/repos/jaredhanson/passport-oauth2/issues/27","id":94005971,"user":{"login":"dendril","id":29705,"avatar_url":"https://avatars.githubusercontent.com/u/29705?v=3","gravatar_id":"","url":"https://api.github.com/users/dendril","html_url":"https://github.com/dendril","followers_url":"https://api.github.com/users/dendril/followers","following_url":"https://api.github.com/users/dendril/following{/other_user}","gists_url":"https://api.github.com/users/dendril/gists{/gist_id}","starred_url":"https://api.github.com/users/dendril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dendril/subscriptions","organizations_url":"https://api.github.com/users/dendril/orgs","repos_url":"https://api.github.com/users/dendril/repos","events_url":"https://api.github.com/users/dendril/events{/privacy}","received_events_url":"https://api.github.com/users/dendril/received_events","type":"User","site_admin":false},"created_at":"2015-04-17T15:13:05Z","updated_at":"2015-04-17T15:13:05Z","body":"I forgot to close the issue. Finally found the solution by myself.\r\n\r\nThanks!"}}