Custom Function Authentication not working with nodejs package

Hi @Pavel_Duchovny

i now find a way to use Magic.link with Realm Custom Functions. It works but, how can i add User Metadata like there email address? The Realm Docs says:

Custom Function authentication users are not automatically associated with any data.

How can I save user metadata without interrupting Realm’s automatic create/login process?