Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 10, 2019
2 parents df9bee0 + 483b86f commit b313f89
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/providers/laravel-passport.md
Expand Up @@ -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).

13 changes: 13 additions & 0 deletions docs/recipes/extend.md
Expand Up @@ -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' ]
}
}
```
6 changes: 6 additions & 0 deletions docs/schemes/local.md
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion docs/schemes/oauth2.md
Expand Up @@ -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 like [auth0](../providers/auth0.md) that you may use instead of directly using this scheme.

## Usage

Expand Down

0 comments on commit b313f89

Please sign in to comment.