code: def account_setup(remote, token, resp):
      
      gh = github3.login(token=resp['access_token'])
      with db.session.begin_nested():
          me = gh.me()
  
          token.remote_account.extra_data = {'login': me.login, 'id': me.id}
  
          # Create user <-> external id link.
          oauth_link_external_id(
              token.remote_account.user, dict(
                  id=str(me.id),
                  method='github')
          )
docs: Perform additional setup after user have been logged in.
  
      :param remote: The remote application.
      :param token: The token value.
      :param resp: The response.