Skip to content

Commit

Permalink
a taste of what the token is
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-brancotte committed Feb 8, 2024
1 parent 7117d25 commit 334f73a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api-mwe.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@

token = json.loads(r.content.decode())["token"]

print(f"Token is {token[:4]}{'*'*(len(token)-7)}{token[-3:]}")


headers = {'Authorization': f'Token {token}'}
r = requests.get(f'{baseUrl}/api/licence/', headers=headers)
Expand Down

0 comments on commit 334f73a

Please sign in to comment.