Started implementing PIN for OAuth... entry doesn't show up in popup
This commit is contained in:
parent
4443d9d12c
commit
716e20a9b2
3 changed files with 32 additions and 10 deletions
5
hrafn.py
5
hrafn.py
|
@ -536,7 +536,10 @@ class Hrafn():
|
|||
|
||||
|
||||
def on_file_add_account(self, widget):
|
||||
token = apithreads.get_access_token()
|
||||
token = apithreads.get_access_token(self.window)
|
||||
if token is None:
|
||||
return
|
||||
|
||||
api = apithreads.CustomApi(token)
|
||||
username = api.username
|
||||
|
||||
|
|
Reference in a new issue