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

Function createFeedWithToken

test/integration/utils/hooks.js:35–40  ·  view source on GitHub ↗
(client, feedGroup, userId, readOnly)

Source from the content-addressed store, hash-verified

33}
34
35function createFeedWithToken(client, feedGroup, userId, readOnly) {
36 userId = randUserId(userId);
37
38 const token = jwt('*', readOnly ? 'read' : '*', { feedId: feedGroup + userId });
39 return client.feed(feedGroup, userId, token);
40}
41
42function initNode() {
43 this.timeout(40000);

Callers 1

beforeEachBrowserFunction · 0.85

Calls 3

randUserIdFunction · 0.85
jwtFunction · 0.85
feedMethod · 0.80

Tested by

no test coverage detected