Closed nhpackard closed 3 years ago
I added a print statement to DapticsClient().login()
...
data = self.execute_query(doc, vars)
if 'login' in data and data['login'] is not None:
self.auth.token = data['login']['token']
self.user_id = data['login']['user']['userId']
else:
print('login: no data returned from execute_query()')
return data
...
and sure 'nuff, the print statement prints. So... execution of the Login mutation is not returning data with login info (auth token, userID).
I will change the login API to return errors, like "email and/or password credentials are invalid".
but... the credentials are valid. maybe db sync problem to inertia?
Maybe we need to fire up the admin ui to check users on inertia.
Should be fixed in PR #30
[branch v0.12.0]
Trying to execute
03_SimpleTutorial.ipynb
on cell
get:
problem is that
$session
is not filled in...user_id
and other session info are not present, and looked for later.