Skip to content

Commit

Permalink
Merge pull request #97 from manniL/feature-fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
breakingrobot committed Mar 12, 2018
2 parents c5e289e + 03ee052 commit 9a0dcdb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ All notable changes to this project will be documented in this file. See [standa

### Bug Fixes

* rc11 backward compability ([c0222e9](https://github.com/nuxt-community/auth-module/commit/c0222e9))
* rc11 backward compatibility ([c0222e9](https://github.com/nuxt-community/auth-module/commit/c0222e9))



Expand All @@ -98,7 +98,7 @@ All notable changes to this project will be documented in this file. See [standa

### Features

* improve compability for nuxt 1.0.0 ([7740dec](https://github.com/nuxt-community/auth-module/commit/7740dec))
* improve compatibility for nuxt 1.0.0 ([7740dec](https://github.com/nuxt-community/auth-module/commit/7740dec))



Expand All @@ -110,7 +110,7 @@ All notable changes to this project will be documented in this file. See [standa

* add fetchUser option ([#27](https://github.com/nuxt-community/auth-module/issues/27)) ([1b8856c](https://github.com/nuxt-community/auth-module/commit/1b8856c))
* allow customizing http method for user endpoint ([#28](https://github.com/nuxt-community/auth-module/issues/28)) ([994152b](https://github.com/nuxt-community/auth-module/commit/994152b))
* more compability for nuxt@next ([d50be11](https://github.com/nuxt-community/auth-module/commit/d50be11))
* more compatibility for nuxt@next ([d50be11](https://github.com/nuxt-community/auth-module/commit/d50be11))



Expand Down
2 changes: 1 addition & 1 deletion docs/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ Vuex store namespace for keeping state.

* Default: `scope`

`user` object property used for scope checkings (`hasScope`). Can be either an array or a object.
`user` object property used for scope checking (`hasScope`). Can be either an array or a object.

2 changes: 1 addition & 1 deletion docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Edit `nuxt.config.js`:
}
```
> 👉 You can now optionaly configure [Auth Middleware](middleware.md) and some [Strategies](strategies/README.md).
> 👉 You can now optionally configure [Auth Middleware](middleware.md) and some [Strategies](strategies/README.md).
2 changes: 1 addition & 1 deletion lib/auth/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class Auth {
this._errorListeners = []

// Private state is suitable to keep information not being exposed to Vuex store
// This helps prevent stealing token from SSR resnponse HTML
// This helps prevent stealing token from SSR response HTML
Vue.set(this, '_state', {})
}

Expand Down
2 changes: 1 addition & 1 deletion lib/auth/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Middleware.auth = function (ctx) {
const { login } = ctx.app.$auth.options.redirect

if (ctx.app.$auth.state.loggedIn) {
// -- Authotized --
// -- Authorized --
// Redirect to home page if inside login page
if (login && ctx.route.path === login.split('?')[0]) {
ctx.app.$auth.redirect('home')
Expand Down
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function (moduleOptions) {
// Merge all option sources
const options = merge({}, defaults, moduleOptions, this.options.auth)

// -- Backward compability --
// -- Backward compatibility --

if (options.endpoints) {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 9a0dcdb

Please sign in to comment.