Skip to content
This repository was archived by the owner on Jan 18, 2024. It is now read-only.

Commit b947765

Browse files
antonombell8903
authored andcommitted
Colorize example code
1 parent cc66ada commit b947765

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The strategy requires a `verify` callback, which is where the custom logic goes
3131

3232
Here is the pseudo code:
3333

34-
```
34+
```javascript
3535
passport.use('strategy-name', new CustomStrategy(
3636
function(req, callback) {
3737
// Do your custom user finding logic here, or set to false based on req object
@@ -42,7 +42,7 @@ passport.use('strategy-name', new CustomStrategy(
4242

4343
And a basic example:
4444

45-
```
45+
```javascript
4646
passport.use(new CustomStrategy(
4747
function(req, done) {
4848
User.findOne({
@@ -62,7 +62,7 @@ authenticate requests.
6262
For example, as route middleware in an [Express](http://expressjs.com/)
6363
application:
6464

65-
```
65+
```javascript
6666
app.post('/login',
6767
passport.authenticate('custom', { failureRedirect: '/login' }),
6868
function(req, res) {

0 commit comments

Comments
 (0)