From 246a45af61edcbd8737e38c63e664d6f6adf9ba7 Mon Sep 17 00:00:00 2001 From: David Neal Date: Sun, 21 Jul 2019 19:22:44 +0100 Subject: [PATCH 1/6] Adds tokenName to local.md (#403) --- docs/schemes/local.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/schemes/local.md b/docs/schemes/local.md index be1b87d31..9a731a6b8 100644 --- a/docs/schemes/local.md +++ b/docs/schemes/local.md @@ -72,6 +72,12 @@ To disable each endpoint, simply set it's value to `false`. This option can be used to disable all token handling. Useful for Cookie only flows. \(Enabled by default\) +### `tokenName` + +- Default: `Authorization` + + Authorization header name to be used in axios requests. + ### `tokenType` - Default: `Bearer` From 62e943fefccb63f7dd2061051c6e1ed4fd971ae2 Mon Sep 17 00:00:00 2001 From: Ilya Zarudny Date: Mon, 2 Sep 2019 16:23:31 +0300 Subject: [PATCH 2/6] Broken link --- docs/schemes/oauth2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/schemes/oauth2.md b/docs/schemes/oauth2.md index 5eb8ef004..b0e872681 100644 --- a/docs/schemes/oauth2.md +++ b/docs/schemes/oauth2.md @@ -2,7 +2,7 @@ [Source Code](https://github.com/nuxt-community/auth-module/blob/dev/lib/schemes/oauth2.js) -`oauth2` supports various oauth2 login flows. There are many pre-configured [providers](../providers/README.md) that you may use instead of directly using this scheme. +`oauth2` supports various oauth2 login flows. There are many pre-configured [providers](../providers/auth0.md) that you may use instead of directly using this scheme. ## Usage From 62530056363451449636d3186d681311d69cf6b5 Mon Sep 17 00:00:00 2001 From: Ilya Zarudny Date: Wed, 4 Sep 2019 10:28:56 +0300 Subject: [PATCH 3/6] Changed texting and link to providers on schemes page --- docs/schemes/oauth2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/schemes/oauth2.md b/docs/schemes/oauth2.md index b0e872681..db7b45a47 100644 --- a/docs/schemes/oauth2.md +++ b/docs/schemes/oauth2.md @@ -2,7 +2,7 @@ [Source Code](https://github.com/nuxt-community/auth-module/blob/dev/lib/schemes/oauth2.js) -`oauth2` supports various oauth2 login flows. There are many pre-configured [providers](../providers/auth0.md) that you may use instead of directly using this scheme. +`oauth2` supports various oauth2 login flows. There are many pre-configured providers like [auth0](../providers/auth0.md) that you may use instead of directly using this scheme. ## Usage From 8f66b011af2422b342a3820a1fffe86e3488397b Mon Sep 17 00:00:00 2001 From: Sand Of Vega Date: Tue, 10 Sep 2019 14:02:08 +0600 Subject: [PATCH 4/6] docs: update laravel passport link to version 6.0 (#445) --- docs/providers/laravel-passport.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/providers/laravel-passport.md b/docs/providers/laravel-passport.md index 308a0ddf2..56877fa3c 100644 --- a/docs/providers/laravel-passport.md +++ b/docs/providers/laravel-passport.md @@ -26,5 +26,5 @@ this.$auth.loginWith('laravel.passport') ### Obtaining `url`, `client_id` and `client_secret` -These options are **REQUIRED**. The `url` is the location of your Laravel application. To obtain the `client_id` and `client_secret`, create a new client app in your [Laravel app](https://laravel.com/docs/5.6/passport#managing-clients). +These options are **REQUIRED**. The `url` is the location of your Laravel application. To obtain the `client_id` and `client_secret`, create a new client app in your [Laravel app](https://laravel.com/docs/6.0/passport#managing-clients). From 218835be4ddae87c3492db5010a5790c7a6c01a6 Mon Sep 17 00:00:00 2001 From: SaulIO <49268532+SaulIO@users.noreply.github.com> Date: Tue, 10 Sep 2019 10:04:09 +0200 Subject: [PATCH 5/6] docs: update extend.md (#435) --- docs/recipes/extend.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/recipes/extend.md b/docs/recipes/extend.md index 7f27d453a..042e377ce 100644 --- a/docs/recipes/extend.md +++ b/docs/recipes/extend.md @@ -26,3 +26,16 @@ export default function ({ $auth }) { const username = $auth.user.username } ``` + +For example (with SSR), if you need to make sure all instances of `axios` are configured: + +```js +{ + modules: [ + '@nuxtjs/auth' + ], + auth: { + plugins: [ { src: '~/plugins/axios', ssr: true }, '~/plugins/auth.js' ] + } +} +``` From 483b86f490fdf7573916a817535cfb4dbc0eb184 Mon Sep 17 00:00:00 2001 From: Arzamastsev Mikhail Date: Tue, 10 Sep 2019 11:04:46 +0300 Subject: [PATCH 6/6] docs: fix broken url to middleware guide (#431)