Is there any built-in action for a flow that would...
# ask-a-descoper
j
Is there any built-in action for a flow that would allow me to let an invited user self-request an invite (e.g. as the error step from Verify Token)? Or, if a token is deleted/invalid, is it not possible to determine which account was associated with the token in the past?
To clarify, is it possible when continuing after an error from Verify Token (
?t=<expired_token>
) to then use an action like Step Up or Load User or similar to load user data for the user the expired token was associated with at least well enough to use an action like User / Invite to send fresh invite in a sort of self-service fashion? (similar to what a user would do with a "forgot password?" use case)
g
If the user never accepted the invite - and the token is expired - we cannot "load user". You can basically do a normal sign-in as a failover approach
j
If the user has never set a password or other authentication mechanism, isn't the invite token the only approach until a new one gets generated?
g
you can do sign-in using magic link, and then have them set a password
when you set expiration on the invitation token - the expiration is on the token, not the invitation.
j
Oh, I'm totally happy to try that. Magic link being like a new token I guess?
g
yes
j
I will definitely try this. So I can error out to an action to send a magic link and use that wait loop to reintegrate them back into the onboarding flow? Thank you!
g
yes. that's the idea.
cool. let us know how it goes
j
@Gilad Shriki on the onboarding note, I'm not sure if you saw my earlier question but it's what I wanted to put right after this in the flow: https://authtown.slack.com/archives/C04490U8M7A/p1760026474837659 You might also have a quick solution there also?
Like right after first-auth following the ?t= invite flow, it would be amazing to offer the chance for the user to review/edit any of their basic contact information before they finish the first sign in via a form like the one in my screenshot here. I can pre-fill it from
user.*
attributes, but I'm not sure the right actions to write-back for any changes. Also, I wanted to use the step to require them to set an initial password after they start with none.
g
Yes. That's great, and should be very easy with a flow and the user custom attributes.