node.js passport autentification with sqlite
问题 Its possible use node.js + passport and sqlite database with session? All example only with mongoDb. I want collect all data in sqlite. 回答1: Below is an example of using passport-local to create a SQLite backed login strategy. Express specific initialization has been omitted. This example assumes you have a database with the following users table: CREATE TABLE "users" ( "id" INTEGER PRIMARY KEY AUTOINCREMENT, "username" TEXT, "password" TEXT, -- sha256 hash of the plain-text password "salt"