Skip to main content

Session Management


AnchorOverview

User-specific requests in Quiltt require a valid Session Token. These endpoint allows you to verify that a session is valid and revoke the session, which will invalidate the token.

AnchorAuthorization

Pass in the Session Token in the Authorization header.

AnchorThe Session Object

Session

id string
expiration integer
userId string
token string

AnchorRetrieve Session

GET
https://auth.quiltt.io/v1/users/session

Verify that a Session Token is valid.

Successful requests will return up-to-date information about your Session.

AnchorRequest Example

AnchorResponse Examples

200 OK

{
"id": "4505c651-8717-4f4e-a0ce-f707172c33d8",
"expiration": 1620938721,
"userId": "3baa7624-2053-46b4-93f6-9132ce6ec65a",
"token": "eyJhbGciOiJIUzUxMiJ9.eyJuYmYiOjE2MjA4NTY3MzgsImlhdCI6MTYyMDg1NjczOCwianRpIjoiZDZlMmM4YjAtOTYwMi00YmY2LTk0MmUtOWUxYmY3NjkwMDhkIiwiaXNzIjoiYXV0aC5xdWlsdHQuaW8iLCJhdWQiOiJhcGkucXVpbHR0LmlvIiwiZXhwIjoxNjIwOTQzMTM4LCJ2ZXIiOjEsImFpZCI6IjdkODZiODI1LWY5MzctNGNiNS05N2NjLTM4NDYwMzczNmQ3YiIsInVpZCI6IjNiYWE3NjI0LTIwNTMtNDZiNC05M2Y2LTkxMzJjZTZlYzY1YSJ9.WGdEeHFLMXuBVUaNbdd9C2bjq189jDG9ebOiR0FjsUB8zdMu8V5khf1smgBRyJR80Hxi-IJvNCUULjrQMFlXNg"
}

401 Unauthorized

{
"message": "Not Authenticated",
"instruction": "Does your `Authorization` header contain a valid, unexpired session token?"
}

AnchorRevoke Session

DELETE
https://auth.quiltt.io/v1/users/session

Verify that a Session Token is valid.

Successful requests will return up-to-date information about your user’s Session.

AnchorRequest Example

AnchorResponse Example

204 No Content