mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 22:18:27 +00:00
refactor(web): share creds json reader
This commit is contained in:
@@ -33,7 +33,7 @@ export function hasWebCredsSync(authDir: string): boolean {
|
||||
}
|
||||
}
|
||||
|
||||
function readCredsJsonRaw(filePath: string): string | null {
|
||||
export function readCredsJsonRaw(filePath: string): string | null {
|
||||
try {
|
||||
if (!fsSync.existsSync(filePath)) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user