From 03ee0527ff978acadd5a77d74fcd7a870f524336 Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Mon, 12 Mar 2018 19:23:07 +0100 Subject: [PATCH] Fix typos --- CHANGELOG.md | 6 +++--- docs/options.md | 2 +- docs/setup.md | 2 +- lib/auth/auth.js | 2 +- lib/auth/middleware.js | 2 +- lib/module.js | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca2e8cb52..9555c00d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) @@ -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)) @@ -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)) diff --git a/docs/options.md b/docs/options.md index f9c9c5891..46e48cbe2 100644 --- a/docs/options.md +++ b/docs/options.md @@ -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. diff --git a/docs/setup.md b/docs/setup.md index 975eae67c..7a2431875 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -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). diff --git a/lib/auth/auth.js b/lib/auth/auth.js index 107fbecad..4fbf5d3b9 100644 --- a/lib/auth/auth.js +++ b/lib/auth/auth.js @@ -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', {}) } diff --git a/lib/auth/middleware.js b/lib/auth/middleware.js index ff9dcbfd6..7e67e7f57 100644 --- a/lib/auth/middleware.js +++ b/lib/auth/middleware.js @@ -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') diff --git a/lib/module.js b/lib/module.js index 1c0932dc0..b90d559fd 100644 --- a/lib/module.js +++ b/lib/module.js @@ -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