lemeryfertitta/BoardLib

Improvement: delete session on Aurora server

Opened this issue · 1 comments

The official Kilter app uses the same session token for a long time. I've been playing around with it for over a week and it has never requested a new session.
BoardLib creates a new session everytime it runs.

Should we end the session after we got all wanted information from the server so it doesn't have to store so many useless sessions?

The API call looks like this:

DELETE https://kilterboardapp.com/sessions/my_session_token
Authorization: Bearer my_session_token

Sure, for the logbook command this seems like a reasonable minor improvement. Perhaps the bigger improvement here would be to have the option to stash tokens somewhere, so that the login could be skipped. For Climbdex, I store these as cookies. For command-line usage, perhaps a file somewhere which maps username + board name to last session token.