When the code generates a function that supports both anonymous and other authentications methods. If the other methods are functions, it needs to pass something to the function to let it know that anonymous is allowed on the endpoint. Ex. when calling accessToken, I need to know if the endpoint supports anonymous so that i know if the authentication for getting a token fails, to not redirect to the login server for the user to login. To just ignore the failure to get token and return undefined.