sqld
sqld copied to clipboard
Deal with expired auth tokens with persistent websockets
Currently the expiration of a token is only checked at the moment of connection. Instead, sqld should forcibly close connections at the time of expiration, or check the expiration at the moment of each query and yield an error in the query result. Personally I prefer the former.
can we close this @honzasp ?
This is not yet implemented, but Hrana 2 added a mechanism for clients to reauthenticate by sending a repeated hello message on the WebSocket. However, the libsql clients don't yet contain a mechanism for the user to set a new JWT.