I have found plenty of doc on how to customize my signin message.
But nothing on how to access it inside a cloud function.
Anyone could help me with that ?
I am trying to get referral data for users when they log in (the referral data is passed on the signin message).
So i was thinking of doing an afterSave trigger on the _User class, catch the user, check if i already know him and if not, get the signin message and see if the user has a referral or not and then log the user in my class.