Skip to content

Commit

Permalink
chore(auth): update upgrade guide (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnixaa committed May 15, 2018
1 parent 3428ec3 commit ca81f90
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/framework/auth/UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,20 @@ should be:
})`
```

3. Register strategies through special `setup` method, so instead of the object:
3. Register strategies through special `setup` method, so instead of the `providers` object,
where object key - is a strategy name and value is a configuration:

```
strategies: {
providers: {
email: {
service: NbEmailPassAuthProvider,
config: { ... }
}
}
```

should be this an array:
should be an array (called `strategies`) which accepts result of a call of `setup` method of a strategy,
which in its turn accepts a configuration, with a `name` key.

```
strategies: [
Expand Down

0 comments on commit ca81f90

Please sign in to comment.