MCPcopy Create free account
hub / github.com/78/tenbox / LoadDeviceToken

Function LoadDeviceToken

src/daemon/cloud_tunnel.cpp:213–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213std::string LoadDeviceToken(const std::string& data_dir) {
214 std::ifstream in(DeviceTokenPath(data_dir));
215 std::string token;
216 in >> token;
217 return token;
218}
219
220bool DeleteDeviceToken(const std::string& data_dir, std::string* error) {
221 const auto path = DeviceTokenPath(data_dir);

Callers 1

ThreadMainMethod · 0.85

Calls 1

DeviceTokenPathFunction · 0.85

Tested by

no test coverage detected