How to get user profile (email/name) from Apple Sign-in with MongoDB Realm in Next.js?

Getting User Profile Data from Apple Sign-in with MongoDB Realm Web SDK

I’m implementing Apple Sign-in with MongoDB Realm Web SDK in my Next.js application. While the authentication works, I’m unable to get the user’s profile data (email and name) from the response.

Any help or guidance would be greatly appreciated!

Thank You!
-Meet