feat: add e2e test for logout

This commit is contained in:
Joe Previte
2021-03-17 16:23:17 -07:00
parent 5cec6208d0
commit 090687d057
4 changed files with 68 additions and 8 deletions

View File

@@ -3,11 +3,14 @@ import { promises as fs } from "fs"
import { RateLimiter as Limiter } from "limiter"
import * as path from "path"
import safeCompare from "safe-compare"
import { Cookie } from "../../../lib/vscode/src/vs/server/common/cookie"
import { rootPath } from "../constants"
import { authenticated, getCookieDomain, redirect, replaceTemplates } from "../http"
import { hash, humanPath } from "../util"
export enum Cookie {
Key = "key",
}
// RateLimiter wraps around the limiter library for logins.
// It allows 2 logins every minute and 12 logins every hour.
class RateLimiter {