customDataAsBsonDocument

inline fun User.customDataAsBsonDocument(): BsonDocument?

Return the custom user data associated with the user in the Realm App as BsonDocument.

The data is only refreshed when the user's access token is refreshed or when explicitly calling User.refreshCustomData.

Return

The custom user data associated with the user.