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

Method getAnalyticsToken

src/client.ts:368–375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

366 }
367
368 getAnalyticsToken() {
369 this._throwMissingApiSecret();
370
371 return JWTScopeToken(this.apiSecret as string, 'analytics', '*', {
372 userId: '*',
373 expireTokens: this.expireTokens,
374 });
375 }
376
377 getBaseUrl(serviceName?: string) {
378 if (!serviceName) serviceName = 'api';

Callers 2

test.tsFile · 0.80
client_test.jsFile · 0.80

Calls 2

JWTScopeTokenFunction · 0.90

Tested by

no test coverage detected