Permalink
Loading
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
docs: migrate to content (#795)
* docs: migrate to content * fix: missing nuxt-edge * docs: add logos * docs: add icon.png * fix: icon was wrong size
- Loading branch information
Showing
with
5,762 additions
and 8,803 deletions.
- +3 −0 docs/.gitignore
- +0 −76 docs/.vuepress/config.js
- +0 −5 docs/api/readme.md
- +10 −0 docs/content/en/api-index.md
- +8 −1 docs/{ → content/en}/api/auth.md
- +6 −1 docs/{ → content/en}/api/options.md
- +7 −1 docs/{ → content/en}/api/refreshController.md
- +6 −1 docs/{ → content/en}/api/storage.md
- +6 −1 docs/{ → content/en}/api/tokens.md
- +24 −0 docs/content/en/glossary.md
- +7 −2 docs/{ → content/en}/guide/middleware.md
- +6 −1 docs/{ → content/en}/guide/provider.md
- +7 −3 docs/{ → content/en}/guide/scheme.md
- +57 −0 docs/content/en/guide/setup.md
- +36 −0 docs/content/en/index.md
- +11 −3 docs/{ → content/en}/providers/auth0.md
- +7 −2 docs/{ → content/en}/providers/facebook.md
- +7 −2 docs/{ → content/en}/providers/github.md
- +5 −4 docs/{ → content/en}/providers/google.md
- +8 −2 docs/{ → content/en}/providers/laravel-jwt.md
- +8 −3 docs/{ → content/en}/providers/laravel-passport.md
- +7 −2 docs/{ → content/en}/providers/laravel-sanctum.md
- +9 −8 docs/{ → content/en}/recipes/extend.md
- +8 −3 docs/{ → content/en}/schemes/cookie.md
- +8 −3 docs/{ → content/en}/schemes/local.md
- +11 −2 docs/{ → content/en}/schemes/oauth2.md
- +6 −1 docs/{ → content/en}/schemes/refresh.md
- +10 −0 docs/content/settings.json
- +0 −17 docs/glossary.md
- +0 −32 docs/guide/setup.md
- +0 −160 docs/migration.md
- +3 −0 docs/nuxt.config.js
- +10 −5 docs/package.json
- +18 −18 docs/readme.md
- BIN docs/static/icon.png
- +11 −0 docs/static/logo-dark.svg
- +11 −0 docs/static/logo-light.svg
- +9 −0 docs/static/logo.svg
- +1 −0 docs/static/sw.js
- +19 −0 docs/tailwind.config.js
- +5,101 −3,503 docs/yarn.lock
- +2 −2 netlify.toml
- +289 −4,939 yarn.lock
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,3 @@ | ||
| node_modules | ||
| .nuxt | ||
| dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| title: API | ||
| description: 'Zero-boilerplate authentication support for Nuxt.js!' | ||
| position: 50 | ||
| category: API | ||
| --- | ||
|
|
||
| - [options](./api/options) | ||
| - [auth](./api/auth) | ||
| - [storage](./api/storage) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,24 @@ | ||
| --- | ||
| title: Glossary | ||
| description: Glossary of auth terms | ||
| position: 71 | ||
| category: Glossary | ||
| --- | ||
|
|
||
| ## Scheme | ||
|
|
||
| Schemes define authentication logic. | ||
|
|
||
| Read more in [Schemes and Strategies](./guide/scheme) section. | ||
|
|
||
| ## Strategy | ||
|
|
||
| Strategy is a configured instance of Scheme. | ||
|
|
||
| Read more in [Schemes and Strategies](./guide/schemes) section. | ||
|
|
||
| ## Provider | ||
|
|
||
| Provider auto-configures schemes. | ||
|
|
||
| Read more in [Providers](./guide/provider) section. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,4 +1,9 @@ | ||
| --- | ||
| title: Providers | ||
| description: Providers are an abstraction on top of Schemes. | ||
| position: 5 | ||
| category: Guide | ||
| --- | ||
|
|
||
| Providers are an abstraction on top of Schemes. | ||
| They make it super easy to integrate with popular authentication services. They can do even more by provider required server-side changes such as token signing and you can also write your own provider. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,57 @@ | ||
| --- | ||
| title: Setup | ||
| description: 'Zero-boilerplate authentication support for Nuxt.js!' | ||
| position: 2 | ||
| category: Guide | ||
| --- | ||
|
|
||
| Check the [Nuxt.js documentation](https://nuxtjs.org/guides/configuration-glossary/configuration-modules) for more information about installing and using modules in Nuxt.js. | ||
|
|
||
| ## Installation | ||
|
|
||
|
|
||
| <alert type="warning"> | ||
|
|
||
| This docs are for next version of nuxt-auth module which is unstable. Use with caution! | ||
|
|
||
| </alert> | ||
|
|
||
| Add `@nuxtjs/auth-next @nuxtjs/axios` dependencies to your project: | ||
|
|
||
| <code-group> | ||
| <code-block label="Yarn" active> | ||
|
|
||
| ```bash | ||
| yarn add @nuxtjs/auth-next @nuxtjs/axios | ||
| ``` | ||
|
|
||
| </code-block> | ||
| <code-block label="NPM"> | ||
|
|
||
| ```bash | ||
| npm install @nuxtjs/auth-next @nuxtjs/axios | ||
| ``` | ||
|
|
||
| </code-block> | ||
| </code-group> | ||
|
|
||
| Then, add `@nuxtjs/xxx` to the `modules` section of `nuxt.config.js`: | ||
|
|
||
| ```js{}[nuxt.config.js] | ||
| { | ||
| modules: [ | ||
| '@nuxtjs/axios', | ||
| '@nuxtjs/auth-next' | ||
| ], | ||
| auth: { | ||
| // Options | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| <alert type="warning"> | ||
|
|
||
| IMPORTANT | ||
| When adding `auth-module` to a new Nuxt project ensure you have [activated the Vuex store](https://nuxtjs.org/guide/vuex-store/#activate-the-store). More information on how to do that can be found on the [Nuxt Getting Started Guide](https://nuxtjs.org/guides/directory-structure/store). | ||
|
|
||
| </alert> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,36 @@ | ||
| --- | ||
| title: Introduction | ||
| description: 'Zero-boilerplate authentication support for Nuxt.js!' | ||
| position: 1 | ||
| category: '' | ||
|
|
||
| --- | ||
|
|
||
| <img src="/preview.png" class="light-img" /> | ||
| <img src="/preview-dark.png" class="dark-img" /> | ||
|
|
||
| Auth Module for [NuxtJS](https://nuxtjs.org). | ||
|
|
||
| Zero-boilerplate authentication support for Nuxt.js! | ||
|
|
||
| ## Getting Started | ||
|
|
||
| If it is first time using this module, reading resources below in order is recommended: | ||
|
|
||
| 1. [Add auth and axios modules](./guide/setup) | ||
| 2. [Setup auth middleware](./guide/middleware) | ||
| 3. [Configure local scheme](./schemes/local) | ||
| 4. [Customize options](./api/options) | ||
| 5. [Use `$auth` service](./api/auth) | ||
|
|
||
| You can also watch a video introduction by VueScreencasts. It covers the same material, but in the context of a working Nuxt app. | ||
|
|
||
| [](https://youtu.be/zzUpO8tXoaw) | ||
|
|
||
| ## More Resources | ||
|
|
||
| * [Glossary](./glossary) | ||
| * [GitHub](https://github.com/nuxt-community/auth-module) | ||
| * [Releases](https://github.com/nuxt-community/auth-module/releases) | ||
| * [Examples](https://github.com/nuxt-community/auth-module/tree/dev/examples) | ||
| * [Demo](https://nuxt-auth.herokuapp.com) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.

