SimonAlling / better-sweclockers

Better SweClockers
MIT License
11 stars 4 forks source link

Refactor user ID extraction #251

Closed SimonAlling closed 1 year ago

SimonAlling commented 1 year ago

This PR replaces the crude getUserID function, which expects the caller to know that undefined and 1 represent "not possible to extract user info" and "not logged in", respectively, with a function with a much more explicit and descriptive return type.