def METHOD_NAME(self) -> wrappers.Response:
    if request.values.get('error'):
        return redirect(url_for('unauthorized', error=request.values['error']))
    oauth.setup_session(request.url)
    url = session.get('target')
    if url is None:
        url = url_for('home')
    session['target'] = None
    return redirect(url)