My invite emails do not fill {{inviteUrl}} properl...
# ask-a-descoper
m
My invite emails do not fill {{inviteUrl}} properly (email is sent but that string is empty). This happens when creating a new user with the invite=true flag
c
Are you including the URL in the payload? Can you share an example request payload? Cc: @Bhagyesh Parna
m
I didn't realize I need to pass a
inviteUrl
what would that be? is there any docs around this?
also, is there any way for that invite email to have the magic link already?
c
m
in the magic link case what's the template variable i should use
b
Hey Martin, Use the same placeholder:
{{inviteUrl}}
. If you turn on Project Settings -> Sign Ups and User Invitations -> “Add a Magic Link token to the Invitation Link”, Descope appends the magic-link token to the invite URL automatically. https://docs.descope.com/management/project-settings
m
How can I debug that link not logging in the user? I just see the login page it doesn't advance the magic link
c
Did you add the verify token action referenced in the doc? You can also use the magic link invite flow template as an example