so now I can get code and state but on the profile retrieval I got this error I dont understand:
INFO:werkzeug:127.0.0.1 - - [21/Aug/2018 09:58:44] "GET /linkedin/auth?code=AQRkLA5YlLDs23IwvTiEdupoQ-n-5PzgHBhQv3H7WlYfI1GR0HlmlfO8zPl5cyqksGzkgOZ1Jcqub2YIEEycJzfPmvKMDfTzO8qNFeH08I5C6G4_LDNE8beB6NJS1tBorxQJ2jLuZKBwdkNhTXn4pO4iBz0ZrtNdCx6sNDJj&state=NBEbA7D8TwXqD7t2XtcrMzwRxnCwED HTTP/1.1" 500 -
Traceback (most recent call last):
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/flask/app.py", line 2309, in __call__
return self.wsgi_app(environ, start_response)
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/flask/app.py", line 2295, in wsgi_app
response = self.handle_exception(e)
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/flask/app.py", line 1741, in handle_exception
reraise(exc_type, exc_value, tb)
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/loginpass/_core.py", line 121, in auth
user_info = remote.profile()
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/loginpass/linkedin.py", line 35, in profile
resp = self.get(url, **kwargs)
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/authlib/client/client.py", line 212, in get
return self.request('GET', url, **kwargs)
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/authlib/flask/client/oauth.py", line 209, in request
method, url, token=token, **kwargs)
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/authlib/client/client.py", line 203, in request
return session.request(method, url, **kwargs)
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/authlib/client/oauth2_session.py", line 300, in request
method, url, auth=auth, **kwargs)
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/requests/sessions.py", line 498, in request
prep = self.prepare_request(req)
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/requests/sessions.py", line 441, in prepare_request
hooks=merge_hooks(request.hooks, self.hooks),
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/requests/models.py", line 313, in prepare
self.prepare_auth(auth, url)
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/requests/models.py", line 544, in prepare_auth
r = auth(self)
File "/home/lotso/.local/share/virtualenvs/walkabout/lib/python3.6/site-packages/authlib/client/oauth2_auth.py", line 39, in __call__
token_type = self.token['token_type']
KeyError: 'token_type'