MCPcopy Create free account
hub / github.com/GetStream/stream-js / getCollectionsToken

Method getCollectionsToken

src/client.ts:356–366  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

354 }
355
356 getCollectionsToken() {
357 if (this._collectionsToken) return this._collectionsToken;
358
359 this._throwMissingApiSecret();
360
361 this._collectionsToken = JWTScopeToken(this.apiSecret as string, 'collections', '*', {
362 feedId: '*',
363 expireTokens: this.expireTokens,
364 });
365 return this._collectionsToken;
366 }
367
368 getAnalyticsToken() {
369 this._throwMissingApiSecret();

Callers 5

test.tsFile · 0.80
upsertMethod · 0.80
upsertManyMethod · 0.80
selectMethod · 0.80
deleteManyMethod · 0.80

Calls 2

JWTScopeTokenFunction · 0.90

Tested by

no test coverage detected