MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / createToken

Method createToken

sources/base/AccessManager.cpp:55–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55AccessManager::AuthDefinition AccessManager::createToken(const QString& comment)
56{
57 const QString token = QUuid::createUuid().toString().mid(1, 36);
58 const QString id = QUuid::createUuid().toString().mid(1, 36).left(5);
59
60 _authTable->createToken(token, comment, id);
61
62 AuthDefinition def;
63 def.comment = comment;
64 def.token = token;
65 def.id = id;
66
67 emit SignalTokenUpdated(getTokenList());
68 return def;
69}
70
71void AccessManager::savePipewire(const QString& wToken)
72{

Callers 1

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected