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:
commit
50fdaccc57
1 changed files with 4 additions and 1 deletions
|
@ -51,8 +51,11 @@ involves no arguments.
|
||||||
|
|
||||||
[source,javascript]
|
[source,javascript]
|
||||||
----
|
----
|
||||||
|
var session = require('express-session');
|
||||||
var Keycloak = require('keycloak-connect');
|
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
|
By default, this will locate a file named `keycloak.json` alongside
|
||||||
|
|
Loading…
Reference in a new issue