jwtmoshiur 1.0.1 → 1.0.3
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/package.json +1 -1
- package/readme.md +20 -0
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -23,6 +23,10 @@ A lightweight, zero-configuration npm package that automatically sets up JWT aut
|
|
|
23
23
|
```bash
|
|
24
24
|
npm install jwtmoshiur
|
|
25
25
|
```
|
|
26
|
+
# After running npm install jwtmoshiur then just run below command and boom 💥
|
|
27
|
+
```bash
|
|
28
|
+
npx jwtmoshiur
|
|
29
|
+
```
|
|
26
30
|
|
|
27
31
|
That's it! The package automatically:
|
|
28
32
|
- ✅ Creates a `.env` file with secure JWT configuration
|
|
@@ -255,6 +259,22 @@ your-project/
|
|
|
255
259
|
|
|
256
260
|
## 🛠️ Troubleshooting
|
|
257
261
|
|
|
262
|
+
### Issue: Auto setup not working after npm install
|
|
263
|
+
**Solution:** Manually run the setup command:
|
|
264
|
+
```bash
|
|
265
|
+
npx jwtmoshiur
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
Or if you're in the package, run:
|
|
269
|
+
```bash
|
|
270
|
+
npm exec jwtmoshiur
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
Or update to v1.0.1+:
|
|
274
|
+
```bash
|
|
275
|
+
npm install jwtmoshiur@latest
|
|
276
|
+
```
|
|
277
|
+
|
|
258
278
|
### Issue: Token generation fails
|
|
259
279
|
**Solution:** Ensure `JWT_SECRET` is set in `.env`
|
|
260
280
|
|