def METHOD_NAME(self, phase1=None, status=None):
    if not phase1:
        phase1 = self.do_phase1()
    state, query = self.parse_phase1(phase1)
    code = GH_LOGIN_CODE
    return app.get(
        query['redirect_uri'][0],
        {'code': code, 'state': state},
        status=status)