Delete session

DELETE http://localhost:3001/sessions/create

The body must have username and password. It returns id_token and access_token are signed with the secret located at the config.json file. The id_token will contain the username and the extra information sent, while the access_token will contain the audience, jti, issuer and scope.

Request Body

{"username"=>"user", "password"=>"password"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{"id_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6InVzZXIiLCJleHRyYSI6ImJsZXJnIiwiaWQiOjIsImlhdCI6MTUzNjg3MTQ4MiwiZXhwIjoxNTM2ODg5NDgyfQ.ssLIBEyAF73iQQH7byi6OiXfa1r467wKx_VmfhjJSeY","access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2dvbnRvLmNvbSIsImF1ZCI6Im5vZGVqcy1qd3QtYXV0aCIsImV4cCI6MTUzNjg3NTA4Miwic2NvcGUiOiJmdWxsX2FjY2VzcyIsInN1YiI6ImxhbGFsYW5kfGdvbnRvIiwianRpIjoiRVJmSVVoR2hmaUxNbDFFUyIsImFsZyI6IkhTMjU2IiwiaWF0IjoxNTM2ODcxNDgyfQ.isN1Pl40xa8Ml_8Alh6kcrqO6JvXCkXdCBx0IFeFzCc"}