thefrontside / simulacrum

A simulation platform for use during testing, during development and for high-fidelity application previews
88 stars 14 forks source link

async rules processing #224

Closed jbolda closed 1 year ago

jbolda commented 1 year ago

Motivation

Auth0 rules that were async were running as a race condition. This addresses it and properly waits for async rules to complete before returning a token.

Approach

We made this route async and wrap the vm in a Promise that it can call when it is ready to resolve in the script. Inspiration from SO.

netlify[bot] commented 1 year ago

Deploy Preview for simulacrum canceled.

Name Link
Latest commit edcf511c7ef49f721a989c4a1ed11bd0d23d633a
Latest deploy log https://app.netlify.com/sites/simulacrum/deploys/636537b54e59510008b34f93