Skip to content

Instantly share code, notes, and snippets.

@sumn2u
Created October 4, 2022 13:47
Show Gist options
  • Save sumn2u/0f68579165c2df28cf1f46ae59cbc53d to your computer and use it in GitHub Desktop.
Save sumn2u/0f68579165c2df28cf1f46ae59cbc53d to your computer and use it in GitHub Desktop.
JSON example for restricting API through hai-server
{
"secretKey":"123456789",
"expiresIn":"1h",
"users":[
{
"id":1,
"name":"bruno",
"email":"bruno@email.com",
"password":"bruno"
},
{
"id":2,
"name":"techie",
"email":"techie@email.com",
"password":"techie"
},
{
"id":3,
"name":"nilson",
"email":"nilson@email.com",
"password":"nilson"
}
],
"authenticationURL":"/auth/login",
"authenticatedURL":[
"/comments"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment