MCPcopy Create free account
hub / github.com/ether/etherpad / consume

Method consume

src/node/security/OIDCAdapter.ts:56–64  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

54 }
55
56 consume(id: string) {
57 const key = this.key(id);
58 const payload = storage.get(key) as AdapterPayload | undefined;
59 if (payload) {
60 payload.consumed = epochTime();
61 storage.set(key, payload);
62 }
63 return Promise.resolve();
64 }
65
66 find(id: string): Promise<AdapterPayload | void | undefined> {
67 if (storage.has(this.key(id))) {

Callers 2

OIDCAdapter.tsFile · 0.80

Calls 4

keyMethod · 0.95
epochTimeFunction · 0.85
getMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected