{"action":"created","issue":{"url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/78","labels_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/78/comments","events_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/78/events","html_url":"https://github.com/jadjoubran/laravel5-angular-material-starter/issues/78","id":111383708,"number":78,"title":"Invalid Signature - JWT","user":{"login":"masterpowers","id":11954930,"avatar_url":"https://avatars.githubusercontent.com/u/11954930?v=3","gravatar_id":"","url":"https://api.github.com/users/masterpowers","html_url":"https://github.com/masterpowers","followers_url":"https://api.github.com/users/masterpowers/followers","following_url":"https://api.github.com/users/masterpowers/following{/other_user}","gists_url":"https://api.github.com/users/masterpowers/gists{/gist_id}","starred_url":"https://api.github.com/users/masterpowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masterpowers/subscriptions","organizations_url":"https://api.github.com/users/masterpowers/orgs","repos_url":"https://api.github.com/users/masterpowers/repos","events_url":"https://api.github.com/users/masterpowers/events{/privacy}","received_events_url":"https://api.github.com/users/masterpowers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-14T12:04:05Z","updated_at":"2015-10-14T15:20:50Z","closed_at":null,"body":"Hi Ive been Following Along A tutorial \r\nhttps://scotch.io/tutorials/token-based-authentication-for-angularjs-and-laravel-apps\r\nand \r\nhttp://ryanchenkie.com/token-based-authentication-for-angularjs-and-laravel-apps/\r\nTo implement JWT Authentication\r\n\r\nEverything is Working Fine, When Posting Users email and Password\r\nhttp://rfnbeta.app:8000/api/authenticate/auth?email=iyuri305@gmail.com&password=secret\r\n\r\nAlso i Can Retrieve Authenticated User\r\nhttp://rfnbeta.app:8000/api/authenticate/user/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjUsImlzcyI6Imh0dHA6XC9cL3JmbmJldGEuYXBwOjgwMDBcL2FwaVwvYXV0aGVudGljYXRlXC9hdXRoIiwiaWF0IjoiMTQ0NDgyNDM4OCIsImV4cCI6IjE0NDQ4Mjc5ODgiLCJuYmYiOiIxNDQ0ODI0Mzg4IiwianRpIjoiMjVjMjA2MDMwZGRiMDhhNGRkNTcwZDg1OTBiOWE5ZDEifQ.uA9PObS1VQ5ku3ney4fNb0ocObOY9nD-XFMG0y80ePU\r\n\r\nhere is the result\r\n{\r\n    \"data\": {\r\n        \"user\": {\r\n            \"id\": 5,\r\n            \"name\": \"\",\r\n            \"email\": \"iyuri305@gmail.com\",\r\n            \"created_at\": \"2015-10-14 07:25:45\",\r\n            \"updated_at\": \"2015-10-14 07:25:45\"\r\n        }\r\n    }\r\n}\r\n\r\nBut I get an Invalid Signature when i go to jwt.io\r\nhttp://imgur.com/dIRezZJ\r\n\r\nI just Wanna Know The reason why Im Getting an Invalid Signature\r\nIs it Only Because Im only On Local Environment \r\nor Is there any Other Reason for this\r\nLooking For Answer thanks\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/comments/148082506","html_url":"https://github.com/jadjoubran/laravel5-angular-material-starter/issues/78#issuecomment-148082506","issue_url":"https://api.github.com/repos/jadjoubran/laravel5-angular-material-starter/issues/78","id":148082506,"user":{"login":"masterpowers","id":11954930,"avatar_url":"https://avatars.githubusercontent.com/u/11954930?v=3","gravatar_id":"","url":"https://api.github.com/users/masterpowers","html_url":"https://github.com/masterpowers","followers_url":"https://api.github.com/users/masterpowers/followers","following_url":"https://api.github.com/users/masterpowers/following{/other_user}","gists_url":"https://api.github.com/users/masterpowers/gists{/gist_id}","starred_url":"https://api.github.com/users/masterpowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masterpowers/subscriptions","organizations_url":"https://api.github.com/users/masterpowers/orgs","repos_url":"https://api.github.com/users/masterpowers/repos","events_url":"https://api.github.com/users/masterpowers/events{/privacy}","received_events_url":"https://api.github.com/users/masterpowers/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T15:20:49Z","updated_at":"2015-10-14T15:20:49Z","body":"Yup Figured it out while watching tutorial\r\ni manage to make the Signature Verified\r\nby pasting the secret in  jwt.php\r\n 'secret' => env('JWT_SECRET', 'abksynF8jShkqbXfllf9tcsAzdo4fOZV'),\r\nas shown in the picture.\r\nhttp://imgur.com/YpXqgWw\r\n\r\nThere is no issue at all having the invalid signature :)\r\n\r\nThanks for the Reply :+1: "}}