import { getUserAuthenticationRoleStore } from "./store.js";
export async function setUserAuthenticationRole(data) {
    const store = getUserAuthenticationRoleStore();
    const updatedAt = new Date().toISOString();
    const role = {
        ...data,
        createdAt: data.createdAt || updatedAt,
        updatedAt
    };
    await store.set(role.userId, role);
    return role;
}
//# sourceMappingURL=set-role.js.map