"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useDateToken = void 0;
var react_1 = require("react");
var randomString = function () { return Math.random().toString(36).substring(2, 15); };
var useDateToken = function () {
    var _a = (0, react_1.useState)(Date.now().toString() + randomString()), token = _a[0], setToken = _a[1];
    var refreshToken = (0, react_1.useCallback)(function () { return setToken(Date.now().toString() + randomString()); }, [setToken]);
    return [token, refreshToken];
};
exports.useDateToken = useDateToken;
//# sourceMappingURL=random.js.map