mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
@ -34,7 +34,7 @@ def handle_cmd(args):
|
|||||||
if args.plugincmd == 'auth':
|
if args.plugincmd == 'auth':
|
||||||
return auth()
|
return auth()
|
||||||
elif args.plugincmd == 'refresh':
|
elif args.plugincmd == 'refresh':
|
||||||
return refresh(args)
|
return refresh()
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
|
|
||||||
@ -57,8 +57,7 @@ def auth():
|
|||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
def refresh(args):
|
def refresh():
|
||||||
if int(args):
|
|
||||||
# refresh token for x amount of time (seconds)
|
# refresh token for x amount of time (seconds)
|
||||||
gauth = GoogleAuth(settings_file="settings.yaml")
|
gauth = GoogleAuth(settings_file="settings.yaml")
|
||||||
try:
|
try:
|
||||||
|
Reference in New Issue
Block a user