Skip to content
Mridul Ganga edited this page Oct 7, 2019 · 1 revision

GET : verify auth exists

curl -i -X GET \
 'https://nisb-auth.herokuapp.com/auth?auth=53cc2c59159f4b83be0ec1eee7905b81'

POST: create new auth (login)

curl -i -X POST \
   -H "Content-Type:application/json" \
   -d \
'{
  "email" : "mridul.kepler@gmail.com",
  "password" : "mridul123"
}' \
 'https://nisb-auth.herokuapp.com/auth'

DELETE : remove auth (logout)

curl -i -X DELETE \
 'https://nisb-auth.herokuapp.com/auth?auth=f72f921bb7de4998a9a59264f64bdcfc'

DELETE (all) : remove all auth (logout from everywhere)

curl -i -X DELETE \
 'https://nisb-auth.herokuapp.com/auth?email=mridul.kepler%40gmail.com&all=True'

Clone this wiki locally