diff --git a/README.md b/README.md index 1b1ed8f8..00b13ec3 100644 --- a/README.md +++ b/README.md @@ -331,14 +331,14 @@ All API documentation is generated by typedoc, and [is available in the `typedoc - You can get the email address by parsing the JWT token that's returned from any authentication, like so: ```js import { appleAuth } from '@invertase/react-native-apple-authentication'; - import jwt_decode from 'jwt-decode'; + import { jwtDecode } from 'jwt-decode'; const appleAuthRequestResponse = await appleAuth.performRequest({ requestedOperation: appleAuth.Operation.LOGIN, requestedScopes: [appleAuth.Scope.EMAIL, appleAuth.Scope.FULL_NAME] }); // other fields are available, but full name is not - const { email, email_verified, is_private_email, sub } = jwt_decode(appleAuthRequestResponse.identityToken) + const { email, email_verified, is_private_email, sub } = jwtDecode(appleAuthRequestResponse.identityToken) ``` ## Troubleshooting