setTimeout not a function, auth0 with preact

Getting an error with Auth0,

ReferenceError: setTimeout is not defined

Not sure why this is happening, we have webpack along with preact


Hi, Jared. Thanks for posting your question here.
It’d be great if you could share a code example or GitHub repo for use to reproduce and help you.

We found the solution, thank you, just had to declare a global setTimeout function


Glad to hear that and thanks for sharing with the rest of community!