diff --git a/README.md b/README.md index 1933055..05f79a6 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Go to your Auth0.com backend and configure your CallbackUrls, *DO NOT USE THE KE Syntax should be: ``` -{YOUR_BUNDLE_IDENTIFIER}://${YOUR_AUTH0_DOMAIN}/ios/{YOUR_BUNDLE_IDENTIFIER}/callback +{YOUR_BUNDLE_IDENTIFIER}://{YOUR_AUTH0_DOMAIN}/ios/{YOUR_BUNDLE_IDENTIFIER}/callback https://{YOUR_AUTH0_DOMAIN}/android/{YOUR_APP_PACKAGE_NAME}/callback @@ -112,13 +112,15 @@ Create your Auth0 object this.auth0 = new Auth0('', ''); ``` -Start the web authentication flow, returns a promise +Start the web authentication flow, with a space-separated string declaring [standard claims](https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims) for the desired user info. ```ts /// Promise returns credentials object this.auth0.webAuthentication({ - scope: 'openid offline_access' + scope: 'openid profile email' }).then((res) => { - // goToHomeOrWhatevs(); + this.auth0.getUserInfo(res.accessToken).then( userInfo => { + // goToHomeOrWhatevs(); + }) }, (error) => { // console.log(error); });