adding authcode to  in portal, connected to login logout methods