Handlers
handleAuthenticatedUser
Summary
A handler runs after the user is authenticated and allows for a custom code to handle the user object before the Dynamic SDK finishes the authentication and closes the UI.
Usage
<DynamicContextProvider
settings={{
handlers: {
handleAuthenticatedUser: async (args) => {
console.log("handleAuthenticatedUser was called", args);
await customUserObjectProcess(args.user);
},
},
}}
>
{/* ... rest of your app ... */}
</DynamicContextProvider>
Handler Argument Value
UserProfile Authenticated user
Was this page helpful?