Hey @charliea21,
The library is build with power of TypeScript, so there would be some handy descriptions for every method (in a proper editor, like VSCode).
In addition to that, I’ve build a great documentation using TypeDoc (glapi.ml) and so you can always check what should something do.
Thanks. The code I posted was to mainly clarify some issues in this thread about getting a users ID. Also I may be creating a pull request at some point as I’m thinking of adding some features related to the Glitch Support Forum! (i doubt many people would use it but it would be a nice addition)
No, user IDs are public because you can get them by API without a token. And, of course, any token should be kept in private place because, for example, someone could retrieve list of private projects of a user