How to deal with js/async and js/await in ClojureScript?

I am implementing in Clojurescript (re-frame) code that looks like this:

const login = async () => {
  await auth0Client.loginWithRedirect({
    authorizationParams: {
      redirect_uri: window.location.origin
    }
  });
};

But I am not sure how best to translate the async and the await commands. Any suggestions?

2 Likes