add dedicated auth/callback add dashboard auth
Browse files- utils/callbackmanager.py +1 -1
utils/callbackmanager.py
CHANGED
@@ -41,7 +41,7 @@ class CallbackManager:
|
|
41 |
with open('/tmp/access_token.txt', 'w') as f:
|
42 |
f.write(self.access_token)
|
43 |
return f"Authentication successful! Access Token: {self.access_token[:10]}... (truncated)"
|
44 |
-
|
45 |
|
46 |
def get_auth_url(self) -> str:
|
47 |
return self.api.get_authorization_url()
|
|
|
41 |
with open('/tmp/access_token.txt', 'w') as f:
|
42 |
f.write(self.access_token)
|
43 |
return f"Authentication successful! Access Token: {self.access_token[:10]}... (truncated)"
|
44 |
+
return "Authentication failed. Please check the authorization code."
|
45 |
|
46 |
def get_auth_url(self) -> str:
|
47 |
return self.api.get_authorization_url()
|