• Not Exported

    Resolves the token storage file path

    Returns string

    Absolute path to token storage file

    function getTokenFilePath(): string {
    const userDataPath = app.getPath("userData");
    const dataPath = path.join(userDataPath, "data");

    // Create directory if needed
    if (!fs.existsSync(dataPath)) {
    fs.mkdirSync(dataPath, { recursive: true });
    }

    return path.join(dataPath, TOKEN_FILE);
    }