forked from shoaibsharif/techdiary-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
34 lines (28 loc) · 797 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// joi custom error message
// const jwt = require("jsonwebtoken")
// const user = {
// _id: 1,
// name: "Rayhan"
// }
// const secret = "myjwtsecret"
// // console.log(jwt.sign(user, secret))
// console.log(
// jwt.verify(
// "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOjEsIm5hbWUiOiJSYXloYW4iLCJpYXQiOjE1ODQ2MjkwNjl9.wjvrJU4Oj6xXwHnLBXVroD_dIb3JUshNV15pbZZFzZU",
// secret
// )
// )
// Permission Management -> 20 , march
// Token -> 20 , march
// Article -> crud -> 21 , march
// Tag -> crud -> 21 , march
// Comment ->
// User -> done
// detech client for unique token for a client
// setup babel to project
// add a plugij in mongoose globally
// TASK
//---------------------------
// Article -> update , delete
// Tag -> crud
// Category -> update , delete