{"action":"created","issue":{"url":"https://api.github.com/repos/delight-im/PHP-Auth/issues/124","repository_url":"https://api.github.com/repos/delight-im/PHP-Auth","labels_url":"https://api.github.com/repos/delight-im/PHP-Auth/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/delight-im/PHP-Auth/issues/124/comments","events_url":"https://api.github.com/repos/delight-im/PHP-Auth/issues/124/events","html_url":"https://github.com/delight-im/PHP-Auth/issues/124","id":366436678,"node_id":"MDU6SXNzdWUzNjY0MzY2Nzg=","number":124,"title":"Feature Request: Return user_id on successful email verification","user":{"login":"frankieeedeee","id":42694851,"node_id":"MDQ6VXNlcjQyNjk0ODUx","avatar_url":"https://avatars0.githubusercontent.com/u/42694851?v=4","gravatar_id":"","url":"https://api.github.com/users/frankieeedeee","html_url":"https://github.com/frankieeedeee","followers_url":"https://api.github.com/users/frankieeedeee/followers","following_url":"https://api.github.com/users/frankieeedeee/following{/other_user}","gists_url":"https://api.github.com/users/frankieeedeee/gists{/gist_id}","starred_url":"https://api.github.com/users/frankieeedeee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankieeedeee/subscriptions","organizations_url":"https://api.github.com/users/frankieeedeee/orgs","repos_url":"https://api.github.com/users/frankieeedeee/repos","events_url":"https://api.github.com/users/frankieeedeee/events{/privacy}","received_events_url":"https://api.github.com/users/frankieeedeee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-03T17:01:28Z","updated_at":"2018-10-03T17:20:28Z","closed_at":null,"author_association":"NONE","body":"Hey there,\r\n\r\nDon't know if this is in the works yet, but due to the fact that a use case of mine involves tracking user data in parrallel with the Auth DB, it might be a good idea to return the `user_id` or `email` on successful email verification. That way, if someone is tracking user state alongside this library, we can update internal user state/log respective to the user that has just verified, ie:\r\n\r\n```\r\ntry {\r\n    $auth->confirmEmail($_GET['selector'], $_GET['token']);\r\n\r\n    // email address has been verified\r\n} catch (...\r\n```\r\n\r\nwould become\r\n\r\n```\r\ntry {\r\n    $user_id = $auth->confirmEmail($_GET['selector'], $_GET['token']);\r\n\r\n    // email address has been verified\r\n} catch (...\r\n```\r\n\r\nand now internally, someone can call `$myAppUserModel->setStatus($user_id, \"verified\")`\r\n\r\nJust a thought!\r\n\r\nCheers :)"},"comment":{"url":"https://api.github.com/repos/delight-im/PHP-Auth/issues/comments/426722495","html_url":"https://github.com/delight-im/PHP-Auth/issues/124#issuecomment-426722495","issue_url":"https://api.github.com/repos/delight-im/PHP-Auth/issues/124","id":426722495,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjcyMjQ5NQ==","user":{"login":"frankieeedeee","id":42694851,"node_id":"MDQ6VXNlcjQyNjk0ODUx","avatar_url":"https://avatars0.githubusercontent.com/u/42694851?v=4","gravatar_id":"","url":"https://api.github.com/users/frankieeedeee","html_url":"https://github.com/frankieeedeee","followers_url":"https://api.github.com/users/frankieeedeee/followers","following_url":"https://api.github.com/users/frankieeedeee/following{/other_user}","gists_url":"https://api.github.com/users/frankieeedeee/gists{/gist_id}","starred_url":"https://api.github.com/users/frankieeedeee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankieeedeee/subscriptions","organizations_url":"https://api.github.com/users/frankieeedeee/orgs","repos_url":"https://api.github.com/users/frankieeedeee/repos","events_url":"https://api.github.com/users/frankieeedeee/events{/privacy}","received_events_url":"https://api.github.com/users/frankieeedeee/received_events","type":"User","site_admin":false},"created_at":"2018-10-03T17:20:28Z","updated_at":"2018-10-03T17:20:28Z","author_association":"NONE","body":"Sorry my bad, I just had a look through src and found that this method does infact return the old email address (if any) and the most current email address in an array indexed at `0` and `1` respectively - Maybe we should note this in the docs? :))"}}
{"actor":{"display_login":"frankieeedeee"}}