import { appleAuth } from '@invertase/react-native-apple-authentication';
import jwt_decode 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)
I am implementing Apple login using react-native and need to extract the email value of the user, so I am using jwt-decode to read the token file and read the email value. How do I extract the token file from react-native?
The library you use is
I am implementing Apple login using react-native and need to extract the email value of the user, so I am using jwt-decode to read the token file and read the email value. How do I extract the token file from react-native? The library you use is
Please help me