mirror of
https://github.com/siteboon/claudecodeui.git
synced 2025-12-10 23:09:46 +00:00
fix:identify claude login status
This commit is contained in:
@@ -60,8 +60,9 @@ async function checkClaudeCredentials() {
|
|||||||
const content = await fs.readFile(credPath, 'utf8');
|
const content = await fs.readFile(credPath, 'utf8');
|
||||||
const creds = JSON.parse(content);
|
const creds = JSON.parse(content);
|
||||||
|
|
||||||
if (creds.accessToken) {
|
const oauth = creds.claudeAiOauth;
|
||||||
const isExpired = creds.expiresAt && Date.now() >= creds.expiresAt;
|
if (oauth && oauth.accessToken) {
|
||||||
|
const isExpired = oauth.expiresAt && Date.now() >= oauth.expiresAt;
|
||||||
|
|
||||||
if (!isExpired) {
|
if (!isExpired) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user