fusionauth-typescript-client
fusionauth-typescript-client copied to clipboard
Browser example doesn't run when cloned
The browser example doesn't run when you first clone it.
$ cd fusionauth-typescript-client/examples/browser-example
$ ls -lrt
total 16
-rw-rw-r-- 1 vagrant vagrant 406 May 20 14:38 README.md
-rw-rw-r-- 1 vagrant vagrant 212 May 20 14:38 index.html
lrwxrwxrwx 1 vagrant vagrant 50 May 20 14:38 fusionauth-typescript-client.min.js.map -> ../../dist/fusionauth-typescript-client.min.js.map
lrwxrwxrwx 1 vagrant vagrant 46 May 20 14:38 fusionauth-typescript-client.min.js -> ../../dist/fusionauth-typescript-client.min.js
lrwxrwxrwx 1 vagrant vagrant 42 May 20 14:38 fusionauth-typescript-client.js -> ../../dist/fusionauth-typescript-client.js
-rw-rw-r-- 1 vagrant vagrant 937 May 20 14:38 example.js
The fusionauth javascript files point to files that don't exist in the repo, you have to build them with sb build which most people won't have.
Ideally the files would be generated by the client library build and then checked in.
After you run sb build you may need to copy the build client library javascript if your browser doesn't support symlinks. Then it appears to run just fine.