MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / saveToken

Function saveToken

templates/nodejs-ts/src/main.ts:103–109  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

101}
102
103function saveToken(token: string): void {
104 try {
105 fs.writeFileSync(TOKEN_FILE, token, 'utf-8');
106 } catch (err) {
107 console.warn('Could not save token:', err);
108 }
109}
110
111main().catch(err => {
112 console.error('Fatal error:', err);

Callers 1

onConnectFunction · 0.70

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…