Hi there @thomashesse ,
Welcome to the community!
This is a fairly old post. My guess is the Node version you’re using doesn’t work with the code sample.
It looks like it’s documented in this GH issue for node-restify
library
I’d recommend downgrading Node and trying again.
You may be interested in trying out Okta’s mobile SDKs featured in this post
Happy coding!