sol-auth 1.0.5 → 1.0.7

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 +44 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -8,46 +8,76 @@ Just import and use it in your project.
8
8
 
9
9
  # Install
10
10
  ---
11
- ``` npm i sol-auth
12
-
11
+ ```
12
+ npm i sol-auth
13
+ ```
13
14
  # Uses
14
15
  ---
15
16
 
16
17
  Import the package
17
18
 
18
- ``` const auth = require("sol-auth")
19
+ ```
20
+ const auth = require("sol-auth");
21
+ ```
19
22
 
20
23
  SignIn Option
21
24
 
22
- ``` auth.signIn({ username: username, password: pass, salt: salt })
25
+ ```
26
+ auth.signIn({
27
+ username: username,
28
+ password: pass,
29
+ salt: salt
30
+ });
31
+ ```
23
32
 
24
33
  LogIn Option
25
34
 
26
- ``` auth.logIn({username: username, password: password , hashPassword: hashPassword })
35
+ ```
36
+ auth.logIn({
37
+ username: username,
38
+ password: password,
39
+ hashPassword: hashPassword
40
+ });
41
+ ```
27
42
 
28
43
  LogIn with JWT Token
29
44
 
30
- ``` auth.logIn({username: username, password: password , hashPassword: hashPassword , payload , secret, expiresIn})
45
+ ```
46
+ auth.logIn({
47
+ username: username,
48
+ password: password ,
49
+ hashPassword: hashPassword ,
50
+ payload , secret, expiresIn
51
+ });
52
+ ```
31
53
 
32
- Examples
54
+ # Examples
33
55
 
34
56
  ```
35
57
  const signInFunction = async () => {
36
- const signinData = await auth.signIn({ username: username, password: pass, salt: salt })
58
+ const signinData = await auth.signIn({
59
+ username: username,
60
+ password: pass,
61
+ salt: salt
62
+ });
37
63
 
38
- console.log(signData)
64
+ console.log(signData);
39
65
  }
40
66
 
41
67
  signInFunction()
42
-
43
- ```
68
+ ```
69
+ ```
44
70
  const logInFunction = async () =>{
45
71
 
46
- const loginData = await auth.logIn({username: username, password: pass , hashPassword: hashPassword })
72
+ const loginData = await auth.logIn({
73
+ username: username,
74
+ password: pass ,
75
+ hashPassword: hashPassword
76
+ });
47
77
 
48
- console.log(loginData)
78
+ console.log(loginData);
49
79
  }
50
80
 
51
81
  logInFunction()
52
-
82
+ ```
53
83
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sol-auth",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",