Summary

A handler runs after the user is verified 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: {
      handleVerifiedUser: async (args) => {
        console.log("handleBeforeAuth was called", args);

        await customUserObjectProcess(args.user);
      },
    },
  }}
>
  {/* ... rest of your app ... */}
</DynamicContextProvider>

Handler Argument Value

UserProfile Verified user