Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
aisbf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
aisbf
Commits
bc5d548b
Commit
bc5d548b
authored
Apr 25, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(auth): simplify get_valid_token_with_refresh docstring and error message
parent
38947f65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
kilo.py
aisbf/auth/kilo.py
+1
-5
No files found.
aisbf/auth/kilo.py
View file @
bc5d548b
...
@@ -483,10 +483,6 @@ class KiloOAuth2:
...
@@ -483,10 +483,6 @@ class KiloOAuth2:
"""
"""
Get a valid access token, attempting refresh if expired.
Get a valid access token, attempting refresh if expired.
Note: Kilo uses long-lived tokens (1 year) with the same value for
access and refresh. There is no separate refresh endpoint - when tokens
expire, users must complete device flow again.
Returns:
Returns:
Access token string or None if expired/not authenticated
Access token string or None if expired/not authenticated
"""
"""
...
@@ -495,7 +491,7 @@ class KiloOAuth2:
...
@@ -495,7 +491,7 @@ class KiloOAuth2:
if
self
.
credentials
and
self
.
credentials
.
get
(
'expires'
,
0
)
>
time
.
time
():
if
self
.
credentials
and
self
.
credentials
.
get
(
'expires'
,
0
)
>
time
.
time
():
return
self
.
credentials
.
get
(
'access'
)
return
self
.
credentials
.
get
(
'access'
)
logger
.
error
(
"KiloOAuth2: Token expired
, re-authentication required
"
)
logger
.
error
(
"KiloOAuth2: Token expired"
)
return
None
return
None
def
is_authenticated
(
self
)
->
bool
:
def
is_authenticated
(
self
)
->
bool
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment