Skip to content

Commit

Permalink
docs: removing typos and adding component exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
breakingrobot authored and pi0 committed Jan 26, 2018
1 parent 6ec1b34 commit 0ca4169
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,10 @@ Sets the global settings for store **logout** action.
* **cookieName** - Set the token name in Cookies.
#### redirect
* **guest** (Boolean) - Sets if the middleware should redirect guests users (non-authenticated).
* **user** (Boolean) - Sets if the middleware should redirect logged users (authenticated).
* **noAuth** (Boolean) - Sets if the middleware should redirect logged users (authenticated).
* **guest** (Boolean) - Sets if the middleware should redirect guests users (unauthenticated). Only when `auth` middleware is added to a page.
* **user** (Boolean) - Sets if the middleware should redirect logged users (authenticated). Only when `auth` middleware is added to a page.
* **notLoggedIn** (Boolean) - Sets the redirect URL default of the users not logged in. Only when `auth` middleware is added to a page.
* **loggedIn** (Boolean) - Sets the redirect URL default of the users logged in. Only when `no-auth` middleware is added to a page.
* **loggedIn** (Boolean) - Sets the redirect URL default of the users logged in. Only when `auth` middleware is added to a page.
Expand Down Expand Up @@ -127,6 +126,16 @@ router: {
}
```
### Middleware Components Exclusion
You can set a `guarded` option to false in a specific component and the middleware will now ignore this component.
```js
export default {
options: {
guarded: false,
}
}
```
## License
[MIT License](./LICENSE)
Expand Down

0 comments on commit 0ca4169

Please sign in to comment.