{"action":"closed","issue":{"url":"https://api.github.com/repos/nuxt-community/auth-module/issues/211","repository_url":"https://api.github.com/repos/nuxt-community/auth-module","labels_url":"https://api.github.com/repos/nuxt-community/auth-module/issues/211/labels{/name}","comments_url":"https://api.github.com/repos/nuxt-community/auth-module/issues/211/comments","events_url":"https://api.github.com/repos/nuxt-community/auth-module/issues/211/events","html_url":"https://github.com/nuxt-community/auth-module/issues/211","id":337136173,"node_id":"MDU6SXNzdWUzMzcxMzYxNzM=","number":211,"title":"Whitelisting routes when global router auth has been enabled and is not a nuxt page.","user":{"login":"TheGitPanda","id":8174200,"node_id":"MDQ6VXNlcjgxNzQyMDA=","avatar_url":"https://avatars2.githubusercontent.com/u/8174200?v=4","gravatar_id":"","url":"https://api.github.com/users/TheGitPanda","html_url":"https://github.com/TheGitPanda","followers_url":"https://api.github.com/users/TheGitPanda/followers","following_url":"https://api.github.com/users/TheGitPanda/following{/other_user}","gists_url":"https://api.github.com/users/TheGitPanda/gists{/gist_id}","starred_url":"https://api.github.com/users/TheGitPanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheGitPanda/subscriptions","organizations_url":"https://api.github.com/users/TheGitPanda/orgs","repos_url":"https://api.github.com/users/TheGitPanda/repos","events_url":"https://api.github.com/users/TheGitPanda/events{/privacy}","received_events_url":"https://api.github.com/users/TheGitPanda/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-29T21:00:51Z","updated_at":"2018-06-29T21:00:53Z","closed_at":"2018-06-29T21:00:53Z","author_association":"NONE","body":"I've currently using the auth-module which uses the global auth middleware for the router. For all view components I can just specify `auth: false`.\r\n\r\nBut for a route without a page, when I try to download a file from the route, the authorisation token is missing. Which means my PDF pipe doesn't get as far as sending the response.\r\n```\r\nrouter.get('/document/download/:id', (req, res) => {\r\n  // how to ensure the token is provided OR disable auth from server here\r\n  const PDFStream = require('../helpers/DocumentPDF')\r\n  PDFStream(res)\r\n})\r\n```\r\nSorry if this is a silly question but I couldn't see anything in the docs about whitelists or disabling auth from server side. And surely this is a common task? Appreciate any help or guidance."}}
{"actor":{"display_login":"cmty"}}