sol-auth 1.0.6 → 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.
- package/README.md +11 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,19 +8,22 @@ Just import and use it in your project.
|
|
|
8
8
|
|
|
9
9
|
# Install
|
|
10
10
|
---
|
|
11
|
-
```
|
|
11
|
+
```
|
|
12
|
+
npm i sol-auth
|
|
12
13
|
```
|
|
13
14
|
# Uses
|
|
14
15
|
---
|
|
15
16
|
|
|
16
17
|
Import the package
|
|
17
18
|
|
|
18
|
-
```
|
|
19
|
+
```
|
|
20
|
+
const auth = require("sol-auth");
|
|
19
21
|
```
|
|
20
22
|
|
|
21
23
|
SignIn Option
|
|
22
24
|
|
|
23
|
-
```
|
|
25
|
+
```
|
|
26
|
+
auth.signIn({
|
|
24
27
|
username: username,
|
|
25
28
|
password: pass,
|
|
26
29
|
salt: salt
|
|
@@ -29,7 +32,8 @@ SignIn Option
|
|
|
29
32
|
|
|
30
33
|
LogIn Option
|
|
31
34
|
|
|
32
|
-
```
|
|
35
|
+
```
|
|
36
|
+
auth.logIn({
|
|
33
37
|
username: username,
|
|
34
38
|
password: password,
|
|
35
39
|
hashPassword: hashPassword
|
|
@@ -38,7 +42,8 @@ LogIn Option
|
|
|
38
42
|
|
|
39
43
|
LogIn with JWT Token
|
|
40
44
|
|
|
41
|
-
```
|
|
45
|
+
```
|
|
46
|
+
auth.logIn({
|
|
42
47
|
username: username,
|
|
43
48
|
password: password ,
|
|
44
49
|
hashPassword: hashPassword ,
|
|
@@ -46,7 +51,7 @@ LogIn with JWT Token
|
|
|
46
51
|
});
|
|
47
52
|
```
|
|
48
53
|
|
|
49
|
-
Examples
|
|
54
|
+
# Examples
|
|
50
55
|
|
|
51
56
|
```
|
|
52
57
|
const signInFunction = async () => {
|