Skip to content

Instantly share code, notes, and snippets.

@azlkiniue
Last active June 2, 2020 02:08
Show Gist options
  • Save azlkiniue/98518e6ec374c1ccfff8cf463208e4c9 to your computer and use it in GitHub Desktop.
Save azlkiniue/98518e6ec374c1ccfff8cf463208e4c9 to your computer and use it in GitHub Desktop.
{
"_id": "5ecd41ce845d170035039246",
"email": "[email protected]",
"name": "Ahmada Yusril",
"nik": "3571022222222222",
"phone": "081234567890",
"status": 6,
"password": "$2a$12$juvNCPiHNyYnUvjbgtiC4.M/EjTHez35DUprehGB7wd12csHXGLTe",
"verified_token": "JtBCJYG6kPef",
"verified": false,
"refreshTokens": [
{
"_id": "5ecd4257845d170035039247",
"token": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlY2Q0MWNlODQ1ZDE3MDAzNTAzOTI0NiIsImlhdCI6MTU5MDUxMDE2NywiZXhwIjoxNTkzMTAyMTY3LCJzdWIiOiI1ZWNkNDFjZTg0NWQxNzAwMzUwMzkyNDYifQ.1vqlb6ASC3Ws1VyWJdLUsLN7xqupD0x0mMy88UClOoOJ16H8rpVxRj6y5WsrhMcO5an-MyqoyOCWiaGeLMACeQ"
},
{
"_id": "5ecd43e0845d17003503924d",
"token": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlY2Q0MWNlODQ1ZDE3MDAzNTAzOTI0NiIsImlhdCI6MTU5MDUxMDU2MCwiZXhwIjoxNTkzMTAyNTYwLCJzdWIiOiI1ZWNkNDFjZTg0NWQxNzAwMzUwMzkyNDYifQ.dp_u1HKBHwhBkcD_ZC3XgzRPnxZXqEufWgN_cUBdwcI81DHnzkgiFTR5uOSP_sIBsFHXkJWPnCp37iTTV64lyw"
}
],
"createdAt": "2020-05-26T16:20:30.993Z",
"updatedAt": "2020-05-27T06:39:42.585Z",
"__v": 4,
"location": {
"type": "Point",
"coordinates": [
112.7473121,
-7.2999981
]
}
}
{
"password":{
"type":"String",
"required":true,
"minlength":8
},
"email":{
"type":"String",
"required":true,
"unique":true,
"trim":true
},
"nik":{
"type":"String",
"required":true,
"unique":true,
"trim":true
},
"name":{
"type":"String",
"required":true,
"minlength":2,
"trim":true
},
"phone":{
"type":"String",
"required":true,
"minlength":2,
"trim":true
},
"address":{
"type":"String",
"required":false
},
"gender":{
"type":"String",
"required":false
},
"status":{
"type":"Number"
},
"location":{
"type":{
"type":"String"
},
"coordinates":[
]
},
"verified_token":{
"type":"String"
},
"verified":{
"type":"Boolean"
},
"refreshTokens":[
"refreshTokens"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment