im trying to create a referral system for my game, im using before and after hook functions,
i have few questions about them.
- how can i access the custom value sent from clients in the Authentification process from the before hook Go function ?
- is the Authentification before hook function is triggered only for successful Authentifications? (is there any risk of failure ?)
- is it possibile to know if the user is in a signin or signup process from the before hook ?
- is it possibile to access the custom authentification value passed in the after hook too?
- also what is the metadata passed in nk.WalletUpdate(ctx, userID, changeset, metadata, true) function ? is it the user metadata or a metadata related to the wallet transaction ?