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

Function saveToken

templates/bun-ts/src/main.ts:168–174  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

166}
167
168async function saveToken(token: string): Promise<void> {
169 try {
170 await Bun.write(TOKEN_FILE, token);
171 } catch (err) {
172 console.warn('Could not save token:', err);
173 }
174}
175
176main().catch(err => {
177 console.error('Fatal error:', err);

Callers 1

onConnectFunction · 0.70

Calls 2

warnMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…