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.
This PR replaces the crude
getUserID
function, which expects the caller to know thatundefined
and1
represent "not possible to extract user info" and "not logged in", respectively, with a function with a much more explicit and descriptive return type.