MCPcopy
hub / github.com/entropic-dev/entropic / create

Method create

services/storage/models/token.js:49–58  ·  view source on GitHub ↗
({ for: user, description })

Source from the content-addressed store, hash-verified

47 }
48
49 static async create({ for: user, description }) {
50 const value = `ent_v1_${uuid.v4()}`;
51 await Token.objects.create({
52 value_hash: Token.hasher(value),
53 description,
54 user
55 });
56
57 return value;
58 }
59
60 static async lookupUser(value) {
61 if (!value || !value.startsWith('ent_v1_')) {

Callers 13

cloneFunction · 0.80
createTokenFunction · 0.80
addNewUserFunction · 0.80
package.spec.jsFile · 0.80
token.spec.jsFile · 0.80
packageCreateFunction · 0.80
packageDeleteFunction · 0.80
versionCreateFunction · 0.80
inviteFunction · 0.80
inviteFunction · 0.80
createTokenFunction · 0.80
signupMethod · 0.80

Calls 1

hasherMethod · 0.80

Tested by 1

addNewUserFunction · 0.64