nuxt-auther 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +13 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,28 +1,28 @@
1
- <h1 align="center">Auth</h1>
2
- <p align="center">Alternative Auth module for Nuxt</p>
1
+ <h1 align="center">Nuxt-Auther</h1>
2
+ <p align="center">Authentication module for Nuxt.JS</p>
3
3
 
4
4
  <p align="center">
5
- <a href="https://www.npmjs.com/package/@nuxt-alt/auth">
6
- <img alt="" src="https://img.shields.io/npm/v/@nuxt-alt/auth.svg?style=flat&colorA=18181B&colorB=28CF8D">
5
+ <a href="https://www.npmjs.com/package/nuxt-auther">
6
+ <img alt="" src="https://img.shields.io/npm/v/nuxt-auther.svg?style=flat&colorA=18181B&colorB=28CF8D">
7
7
  </a>
8
- <a href="https://www.npmjs.com/package/@nuxt-alt/auth">
9
- <img alt="" src="https://img.shields.io/npm/dt/@nuxt-alt/auth.svg?style=flat&colorA=18181B&colorB=28CF8D">
8
+ <a href="https://www.npmjs.com/package/nuxt-auther">
9
+ <img alt="" src="https://img.shields.io/npm/dt/nuxt-auther.svg?style=flat&colorA=18181B&colorB=28CF8D">
10
10
  </a>
11
11
  </p>
12
12
 
13
13
  ## Info
14
14
 
15
- This module is meant as an alternative to @nuxtjs/auth, except this is for nuxt3 only with no backwards compatibility support.
15
+ This module is meant as an alternative to @nuxtjs/auth, except this is for Nuxt 3 only with no backwards compatibility support.
16
16
 
17
17
  ## Setup
18
18
 
19
- 1. Add `@nuxt-alt/auth` and `@nuxt-alt/http` dependency to your project
19
+ 1. Add `nuxt-auther` and `@nuxt-alt/http` dependency to your project
20
20
 
21
21
  ```bash
22
- yarn add @nuxt-alt/auth @nuxt-alt/http
22
+ yarn add nuxt-auther @nuxt-alt/http
23
23
  ```
24
24
 
25
- 2. Add `@nuxt-alt/auth` and `@pinia/nuxt` to the `modules` section of `nuxt.config.ts`
25
+ 2. Add `nuxt-auther` and `@pinia/nuxt` to the `modules` section of `nuxt.config.ts`
26
26
 
27
27
  **Note:** you dont need to specify `@nuxt-alt/http`, it will automatically be added but if you want to manually add it, make sure it is below the auth module (and above the proxy module if you are using it). It also doesn't need pinia
28
28
  it will use nuxt's `useState` by default.
@@ -30,7 +30,7 @@ it will use nuxt's `useState` by default.
30
30
  ```ts
31
31
  export default defineNuxtConfig({
32
32
  modules: [
33
- '@nuxt-alt/auth'
33
+ 'nuxt-auther'
34
34
  ],
35
35
  auth: {
36
36
  /* module options */
@@ -40,7 +40,7 @@ export default defineNuxtConfig({
40
40
  ```
41
41
 
42
42
  ## Documentation
43
- [Read Documentation](https://nuxt-alt-auth.vercel.app)
43
+ [Read Documentation](https://nuxt-auther.vercel.app)
44
44
 
45
45
  ## Changes
46
46
 
@@ -168,7 +168,7 @@ auth: {
168
168
  ## TypeScript (2.6.0+)
169
169
  The user information can be edited like so for TypeScript:
170
170
  ```ts
171
- declare module '@nuxt-alt/auth' {
171
+ declare module 'nuxt-auther' {
172
172
  interface UserInfo {
173
173
  email: string
174
174
  name: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-auther",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Authentication module for Nuxt.JS",
5
5
  "homepage": "https://github.com/zerosdev/nuxt-auther",
6
6
  "author": "zerosdev",