"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.registerAuthToken = registerAuthToken;
exports.registerRunContext = registerRunContext;
exports.isValidToken = isValidToken;
exports.lookupRunContext = lookupRunContext;
exports.clearToken = clearToken;
const tokens = new Map();
function registerAuthToken(token) {
    tokens.set(token, null);
}
function registerRunContext(token, ctx) {
    tokens.set(token, ctx);
}
function isValidToken(token) {
    return tokens.has(token);
}
function lookupRunContext(token) {
    return tokens.get(token) ?? null;
}
function clearToken(token) {
    tokens.delete(token);
}
