Hi could I get some assistance? I am working on a feature where I want to send a link as part of a confirmation email. I would like to create a magic link that authenticates a user and allows them to cancel a booking. I have been looking at this documentation https://supertokens.com/docs/thirdpartypasswordless/custom-ui/login-magic-link but I don’t necessarily want the email to be sent automatically as we have a trigger through Salesforce Marketing Cloud and I would to pass in a token as part of this magic link. But I am not sure how to proceed. Any advice would be appreciated.
mongoose1993
09/20/2023, 3:03 PM
@umarfkhawaja Please add more information if I haven't captured the requirements properly. Thanks
u
umarfkhawaja
09/20/2023, 3:06 PM
as mentioned by @mongoose1993, we want to be able to create a magic link which would be included in the email and will look something like https://example.com/cancel-booking?bookingId={bookingId}&token={token}
umarfkhawaja
09/20/2023, 3:08 PM
we want to understand how we can either ask SuperTokens to generate a token for us (possibly with a custom payload), or to configure SuperTokens to accept a JWT we generate ourselves
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).