keechma

hadils 2024-03-19T22:48:59.721299Z

Hi. I am stumped by this problem: I have an async function get-current-user which is a wrapper around AWS Amplify 6.x getCurrentUser. I have this pipeline code:

(def get-cognito-id
  (pipeline! [value {:keys [state*] :as ctx}]
    (auth/get-current-user)
    (pipeline-reset! state* value)
    (util/from-js value)
    (pipeline-reset! state* value)
    (js/console.log @state*)))
no matter what I’ve tried, it stores a promise into state*, not the realized value. Can anyone help me? Thanks in advance!