// manager/TokenManager.kt
package com.example.initiateaphonecallapp.manager

object TokenManager {
    private var _token: String? = null

    fun setToken(token: String?) {
        _token = token
        println("🔑 TokenManager: Token 已设置")
    }

    fun getToken(): String? {
        return _token
    }

    fun clearToken() {
        _token = null
        println("🔑 TokenManager: Token 已清除")
    }

    fun hasToken(): Boolean {
        return !_token.isNullOrEmpty()
    }
}