{"action":"opened","issue":{"url":"https://api.github.com/repos/antonioribeiro/google2fa-laravel/issues/35","repository_url":"https://api.github.com/repos/antonioribeiro/google2fa-laravel","labels_url":"https://api.github.com/repos/antonioribeiro/google2fa-laravel/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/antonioribeiro/google2fa-laravel/issues/35/comments","events_url":"https://api.github.com/repos/antonioribeiro/google2fa-laravel/issues/35/events","html_url":"https://github.com/antonioribeiro/google2fa-laravel/issues/35","id":326654563,"number":35,"title":"Error: The payload is invalid.","user":{"login":"brvnks","id":37627740,"avatar_url":"https://avatars3.githubusercontent.com/u/37627740?v=4","gravatar_id":"","url":"https://api.github.com/users/brvnks","html_url":"https://github.com/brvnks","followers_url":"https://api.github.com/users/brvnks/followers","following_url":"https://api.github.com/users/brvnks/following{/other_user}","gists_url":"https://api.github.com/users/brvnks/gists{/gist_id}","starred_url":"https://api.github.com/users/brvnks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brvnks/subscriptions","organizations_url":"https://api.github.com/users/brvnks/orgs","repos_url":"https://api.github.com/users/brvnks/repos","events_url":"https://api.github.com/users/brvnks/events{/privacy}","received_events_url":"https://api.github.com/users/brvnks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-25T20:30:14Z","updated_at":"2018-05-25T20:30:14Z","closed_at":null,"author_association":"NONE","body":"Hi again, other error that keeps happening. I'm sorry if it is some simple thing, i'm a beginner.\r\nThis error in particular happens when i try to log in, not register like the other one.\r\n\r\nIlluminate \\ Contracts \\ Encryption \\ DecryptException\r\nThe payload is invalid.\r\n\r\nprotected function getJsonPayload($payload)\r\n    {\r\n        $payload = json_decode(base64_decode($payload), true);\r\n \r\n        // If the payload is not valid JSON or does not have the proper keys set we will\r\n        // assume it is invalid and bail out of the routine since we will not be able\r\n        // to decrypt the given value. We'll also check the MAC for this encryption.\r\n        if (! $this->validPayload($payload)) {\r\n            throw new DecryptException('The payload is invalid.');\r\n        }\r\n \r\n        if (! $this->validMac($payload)) {\r\n            throw new DecryptException('The MAC is invalid.');\r\n        }\r\n \r\n        return $payload;\r\n    }\r\n\r\ni'm still following this tutorial: https://scotch.io/tutorials/how-to-add-googles-two-factor-authentication-to-laravel"}}
{"actor":{"display_login":"brvnks"}}