Fix SetAuthIdCookie's IsAuthIdConnect function's issues with mixed authid types

Apologies for diff being a little wonky since I also moved the function in question to a more appropriate file in addition to altering it.