Files
overleaf-cep/services/web/frontend/js/utils/client-id.ts
Mathias Jakobsen 442c1952ab [web] Avoid double indexing of client side referencing (#28235)
* [web] Move chat client id to shared module

* [web] Avoid double indexing of client references

GitOrigin-RevId: 993930e66fdc9952649e3e8d345c70dd37516121
2025-09-08 08:05:14 +00:00

8 lines
160 B
TypeScript

import { v4 as uuid } from 'uuid'
// Wrap uuid in an object method so that it can be stubbed
const clientId = uuid()
export default {
get: () => clientId,
}