{"action":"closed","issue":{"url":"https://api.github.com/repos/tuupola/slim-jwt-auth/issues/10","labels_url":"https://api.github.com/repos/tuupola/slim-jwt-auth/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/tuupola/slim-jwt-auth/issues/10/comments","events_url":"https://api.github.com/repos/tuupola/slim-jwt-auth/issues/10/events","html_url":"https://github.com/tuupola/slim-jwt-auth/issues/10","id":109229530,"number":10,"title":"fetchToken() is not compatible with Slim's cookie encryption","user":{"login":"aquariman","id":1263610,"avatar_url":"https://avatars.githubusercontent.com/u/1263610?v=3","gravatar_id":"","url":"https://api.github.com/users/aquariman","html_url":"https://github.com/aquariman","followers_url":"https://api.github.com/users/aquariman/followers","following_url":"https://api.github.com/users/aquariman/following{/other_user}","gists_url":"https://api.github.com/users/aquariman/gists{/gist_id}","starred_url":"https://api.github.com/users/aquariman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aquariman/subscriptions","organizations_url":"https://api.github.com/users/aquariman/orgs","repos_url":"https://api.github.com/users/aquariman/repos","events_url":"https://api.github.com/users/aquariman/events{/privacy}","received_events_url":"https://api.github.com/users/aquariman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-01T04:55:17Z","updated_at":"2015-10-01T10:08:53Z","closed_at":"2015-10-01T10:08:53Z","body":"For example, the return value for `fetchToken()` is `return $_COOKIE[$this->options[\"cookie\"]];`, but this direct access of $_COOKIE invalidates Slim's cookie helper, including cookie encryption. This makes it impossible to use encrypted cookies for storing tokens. Shouldn't the return statement be: `return $this->app->getCookie($this->options[\"cookie\"])` ?"}}