So I setup all that apple developer stuff and now I am getting less data.
This is the latest response from the AI
The claim result you're seeing indicates that the email claim is not being populated, which could explain why you're not receiving the user's email in the profile data.
This issue could be related to how the social login (in this case, Apple) is configured or how the claims are being processed. Here are a few steps you can take:
Check your Kinde configuration to ensure that email scopes are requested during the authentication process.
Verify that your Apple Sign-In configuration in Kinde is set up correctly and includes the necessary scopes.
Try to refresh the tokens and then get the user data again. According to the NextJS App Router SDK documentation, you can use the refreshTokens() function before getting the user data :
const { getUser, refreshTokens } = getKindeServerSession();
await refreshTokens();
const user = await getUser();
console.log(user);
If the issue persists, you might need to check if the email is being returned in a different claim. You can use the getClaim method to check for other potential claims .
Consider checking the access token directly. You can use the getAccessToken method provided by the SDK :
const { getAccessToken } = getKindeServerSession();
const accessToken = await getAccessToken();
console.log(accessToken);
This might give you more insight into what data is actually being returned from the authentication process.
If after trying these steps you're still not receiving the email or other expected user data, it's possible that there's an issue with how the social login provider (Apple) is configured or how it's interacting with Kinde. In this case, you might need to reach out to Kinde support for further assistance with your specific configuration.
This is the data I am getting back now
GET /dashboard 200 in 111ms
✓ Compiled /favicon.ico in 114ms (633 modules)
GET /favicon.ico 200 in 194ms
✓ Compiled in 406ms (927 modules)
{
id: 'kp_f78188d015d9493f89a71f802f60efec',
email: undefined,
family_name: undefined,
given_name: undefined,
picture: 'https://gravatar.com/avatar/6c117141dc341f2b846b54e34468e66b24e4de275cd2a098a66c34b06666483c?d=blank&size=200',
username: undefined,
phone_number: undefined
}
Email claim: { name: 'email', value: null }
thanks