Open long1eu opened 5 years ago
Hi @long1eu, thanks for reaching out!
We currently do not support accessing these fields directly in the SDK. The StitchUserProfile
currently only exposes the metadata fields that are exposed by Google and Facebook login.
We will look into supporting custom fields in a future release of our SDKs. Until then, you can access the custom metadata fields by creating a Stitch function that uses the data
field in the user context to return the necessary fields. See https://docs.mongodb.com/stitch/functions/context/#context-user
Let me know if you have any questions about this approach!
I'll also leave this issue open until we have a way to access these fields directly in the SDK.
Is there a way to get the custom fields that i put into the JWT payload?