{"action":"closed","issue":{"url":"https://api.github.com/repos/auth0/react-native-auth0/issues/76","repository_url":"https://api.github.com/repos/auth0/react-native-auth0","labels_url":"https://api.github.com/repos/auth0/react-native-auth0/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/auth0/react-native-auth0/issues/76/comments","events_url":"https://api.github.com/repos/auth0/react-native-auth0/issues/76/events","html_url":"https://github.com/auth0/react-native-auth0/issues/76","id":250541946,"number":76,"title":"PasswordRealm scope not applied","user":{"login":"archieherbias","id":9944872,"avatar_url":"https://avatars1.githubusercontent.com/u/9944872?v=4","gravatar_id":"","url":"https://api.github.com/users/archieherbias","html_url":"https://github.com/archieherbias","followers_url":"https://api.github.com/users/archieherbias/followers","following_url":"https://api.github.com/users/archieherbias/following{/other_user}","gists_url":"https://api.github.com/users/archieherbias/gists{/gist_id}","starred_url":"https://api.github.com/users/archieherbias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archieherbias/subscriptions","organizations_url":"https://api.github.com/users/archieherbias/orgs","repos_url":"https://api.github.com/users/archieherbias/repos","events_url":"https://api.github.com/users/archieherbias/events{/privacy}","received_events_url":"https://api.github.com/users/archieherbias/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-08-16T07:58:38Z","updated_at":"2017-08-17T12:30:19Z","closed_at":"2017-08-17T12:30:19Z","body":"I can't change the scope in the `passwordRealm`. I tried to decode the `idToken` and the scopes I defined in the `passwordRealm` is not applied . I's using this code:\r\n\r\n```\r\nimport Auth0 from 'react-native-auth0';\r\n\r\nexport default class AuthService {\r\n\tconstructor(domain, clientId) {\r\n\t\tthis.auth0 = new Auth0({\r\n\t\t\tdomain,\r\n\t\t\tclientId,\r\n\t\t});\r\n\r\n\t\tthis.login = this.login.bind(this);\r\n\t\tthis.getUserInfo = this.getUserInfo.bind(this);\r\n\t}\r\n\r\n\tlogin(username, password) {\r\n\t\treturn this.auth0.auth.passwordRealm({\r\n\t\t\tusername,\r\n\t\t\tpassword,\r\n\t\t\trealm: 'myConnection',\r\n\t\t\tscope: 'openid scopes role access name',\r\n\t\t});\r\n\t}\r\n\r\n\tgetUserInfo(accessToken) {\r\n\t\treturn this.auth0.auth.userInfo({ token: accessToken });\r\n\t}\r\n}\r\n```\r\n\r\nWhen I console log the response of the `getUserInfo` the scope is this `openid profile email address phone` which I expected to be `openid scopes role access name`.\r\n\r\nIs there another configuration that I need to do for this?"}}
{"actor":{"display_login":"cocojoe"}}