UNPKG

@towercg2/server

Version:

The server runtime for the TowerCG2 video graphics system.

11 lines (10 loc) 385 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function SinglePassword(plaintext) { return async (clientId, clientSecret) => clientSecret === plaintext; } exports.SinglePassword = SinglePassword; function LookupAuth(credentials) { return async (clientId, clientSecret) => credentials[clientId] === clientSecret; } exports.LookupAuth = LookupAuth;