I have a B2B2C use case where I’m providing a white label product for end customers. When it comes to the passwordless email, that means we need some language “Here’s you code to log into {businessName}”, where programName is dynamic.
I can’t find a way to pass businessName to the email. Our current workaround is to store it inside app_metadata, which can be read from the email template. However, we’re running into a use case where an end user can be part of multiple businesses, and storing it on app_metadata no longer works, because we do not know which business is logging in for. We do however know which business they’re logging in for at the time of login. So it would be helpful is we could pass this as a parameter to the email somehow.
Once the above is configured, users will login in the context of an organisation and this will give you the ability to pull in the organisation name into your email template from within the email passwordless connection like so: