Hey guys!
I'm reading the page on getting the system user ticket from the system user token, and I've found a small bug in the example code that Tony posted - https://community.superoffice.com/en/developer/create-apps/how-to/develop/get-system-user-ticket/
Specifically, in the index.js file, line 98:
```
if (successful) {...}
```
The `successful` variable you're extracting here is a string, and, as such always truthy. This if will always go through, even if there is an authentication error. It should be `if (successful === 'true')` instead.
Also, a small suggestion. On line 22:
```
const publKeyFile = 'SuperOfficeFederatedLogin.pem';
```
There's no reference anywhere in the article on where this SuperOfficeFederatedLogin.pem is supposed to come from, or what it should contain. I'm sure I'll find something if I search hard enough in the documentation, but it would be really nice if you would link to that as a side-note in the article.
Thank you very much for this example though! It's helping a lot!