{"action":"opened","issue":{"url":"https://api.github.com/repos/WP-API/WP-API/issues/2676","repository_url":"https://api.github.com/repos/WP-API/WP-API","labels_url":"https://api.github.com/repos/WP-API/WP-API/issues/2676/labels{/name}","comments_url":"https://api.github.com/repos/WP-API/WP-API/issues/2676/comments","events_url":"https://api.github.com/repos/WP-API/WP-API/issues/2676/events","html_url":"https://github.com/WP-API/WP-API/issues/2676","id":173612130,"number":2676,"title":"Nonce getting regenerated and rejected.","user":{"login":"leticiatm","id":8591922,"avatar_url":"https://avatars.githubusercontent.com/u/8591922?v=3","gravatar_id":"","url":"https://api.github.com/users/leticiatm","html_url":"https://github.com/leticiatm","followers_url":"https://api.github.com/users/leticiatm/followers","following_url":"https://api.github.com/users/leticiatm/following{/other_user}","gists_url":"https://api.github.com/users/leticiatm/gists{/gist_id}","starred_url":"https://api.github.com/users/leticiatm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leticiatm/subscriptions","organizations_url":"https://api.github.com/users/leticiatm/orgs","repos_url":"https://api.github.com/users/leticiatm/repos","events_url":"https://api.github.com/users/leticiatm/events{/privacy}","received_events_url":"https://api.github.com/users/leticiatm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-27T19:44:49Z","updated_at":"2016-08-27T19:44:49Z","closed_at":null,"body":"I'm having a weird situation. \r\nHaving two users, the admin created when first setting up WP, and a second user I created using wp_create_user(), even if both are set as admin, only the first gets permission to create a new post. The second gets a 403 error with the message \"Cookie nonce is invalid\". No custom endpoint, just using w2/v2/cupom which cupom is a custom post type only.\r\n\r\nSo I started debugging the nonce code, it's working fine from php to the js, it's sending the ajax request correctly, but when I reloaded the page to retry, the nonce was regenerated, while the first user gets a 200 code and the nonce is the same as before the request.\r\n\r\nWhat is happing? Is wp_create_user not working fine with nonce? What can I do to make it work?"}}
{"actor":{"display_login":"leticiatm"}}