customData
inline fun <T> User.customData(serializer: KSerializer<T> = (this as UserImpl).app.configuration.ejson.serializersModule.serializerOrRealmBuiltInSerializer()): T?
Returns the custom user data associated with the user in the Realm App as T.
The data is only refreshed when the user's access token is refreshed or when explicitly calling User.refreshCustomData.
Note This method supports full document serialization. Custom data will be deserialized with serializer and decoded with AppConfiguration.ejson.
Return
The custom user data associated with the user.
Parameters
T
the type to decoded the user custom data.
serializer
deserialization strategy for T.