Skip to content

Commit d88cecb

Browse files
committed
Updated docs
1 parent c26e414 commit d88cecb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,17 @@ $ npm i --save bloggify-passport
1818

1919

2020
```js
21-
const bloggifyPassport = require("bloggify-passport");
22-
23-
console.log(bloggifyPassport());
21+
...
22+
"bloggify-passport": {
23+
login_url: "/user/signin",
24+
verify_callback (email, password, cb) {
25+
if (email === "[email protected]" && password === "42") {
26+
return cb(null, { name: "foo" })
27+
}
28+
cb(new Error("Invalid username or password."))
29+
}
30+
},
31+
...
2432
```
2533

2634

0 commit comments

Comments
 (0)