Load User
The Load User
action retrieves the authenticated user's full session context using the refresh token.
This action is particularly useful when other steps in the flow require an authenticated user context. For example, actions like updating user consent or connecting an outbound app rely on verified user details, which the Load User
action makes available to the flow.
After running the Load User
action, user related dynamic values will become available in context throughout the rest of the flow.
How to Use
To use the Load User
action in a flow:
- Make sure the user is authenticated with a condition that checks if the
user.loggedIn
key istrue
- Add the
Load User
action to load the user's session and details - Reference the user details and context in subsequent steps of the flow
Using Messaging Templates
This article will show you how to customize email, voice, and sms templates for OTP, enchanted link, and magic link within Descope flows.
Link User Identities Across Different Auth Methods
Learn how to associate multiple login IDs for different authentication methods in your Descope flows.