lib/redis-instance.js
/**
 * Deletes session from Redis, which might happen if Twitter doesn't recognize
 * the credentials or if a user logs out
 *
 * @param  {String} sessionId
 */
Deletes session from Redis, which might happen if Twitter doesn't recognize
the credentials or if a user logs out

@param  {String} sessionId
Deletes session from Redis which might happen if Twitter doesn ' t recognize the credentials or if a user logs out @param { String } sessionId
async function deleteUserSession(sessionId) {
	if (!isValidSessionId(sessionId)) return {}
	if (!client) initClient()
	try {
		await client.del(sessionId)
	} catch(error) {
		log(error)
	}
}
async function deleteUserSession ( sessionId ) { if ( ! isValidSessionId ( sessionId ) ) return { } if ( ! client ) initClient ( ) try { await client . del ( sessionId ) } catch ( error ) { log ( error ) } }
Deletes session from Redis, which might happen if Twitter doesn't recognize
 the credentials or if a user logs out
Deletes session from Redis which might happen if Twitter doesn ' t recognize the credentials or if a user logs out