wispyco
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
My only question is, is there a difference between using my apple creds vs kindes? any benefit to using mine?
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
that worked, I wonder if the first user sign up captures the email with that toggle on. So do you think if I delete the user and user my credentials it may work? Also is there any advantage to using mine?
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
ok
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
oh where do I delete the user on the apple side somewhere I assume?
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
will do
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
with the kinde credentials i get
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
Ok will do thanks
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
Hi it wasn't but I just ticked it now. I get this in my console
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
Business is Lettabird and email is [email protected]
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
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
thanks
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
Will do
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
I have to configure a app on the apple side?
Oh I never did that, thats probably why
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
It suggested this
But it did not work?
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
I hadn't
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
I am using next, and i am developing in replit and it was the frist signup I tried
42 replies
KKinde
•Created by wispyco on 9/15/2024 in #💻┃support
Email undefined for apple id registration on dashboard page
this is for apple login
42 replies
KKinde
•Created by wispyco on 9/9/2024 in #💻┃support
Machine Api Access Token granted once but not again
Oh Yes, I had to implement storage of the access token in my db with a expiry date and check for the expiry date and if it is expired run the request again if it is not expired use the same accesss token. Hope that helps. @IkiTg07
5 replies