Skip to content

Commit 08d3729

Browse files
committed
Testing lib
1 parent 42c4a19 commit 08d3729

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,13 @@
22

33
auth = TFA('access_token')
44

5-
result = auth.authUser('user_token')
5+
result = auth.authUser('user_token')
6+
7+
statCode = result.status
8+
data = result.data
9+
10+
if (statCode == 200):
11+
print('Authenticated.')
12+
user = data['user']
13+
else:
14+
print(data['message'])

0 commit comments

Comments
 (0)