Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createUserSession(userId): UserSession {
return client.createUserSession(
stream.signing.JWTUserSessionToken(apiSecret, userId),
);
}
function createUserSession(userId): UserSession {
return stream.connect(apiKey, stream.signing.JWTUserSessionToken(apiSecret, userId), appId);
}
function createUserSession(userId): UserSession {
return client.createUserSession(
stream.signing.JWTUserSessionToken(apiSecret, userId),
);
}