Merge pull request #103 from abstractj/KEYCLOAK-4685

[KEYCLOAK-4685] Doc Bug in Node.js Adapter doc - Keycloak() requires a config argument
This commit is contained in:
Stian Thorgersen 2017-04-07 09:33:46 +02:00 committed by GitHub
commit 50fdaccc57

View file

@ -51,8 +51,11 @@ involves no arguments.
[source,javascript]
----
var session = require('express-session');
var Keycloak = require('keycloak-connect');
var keycloak = new Keycloak();
var memoryStore = new session.MemoryStore();
var keycloak = new Keycloak({ store: memoryStore });
----
By default, this will locate a file named `keycloak.json` alongside