Open penberg opened 1 year ago
What does it mean for the token to be undefined
? The token is passed as a query parameter, so it is always a string.
Maybe I can add
const parsedUrl = hrana.parseLibsqlUrl(url);
if (!parsedUrl.authToken) {
throw new Error("authToken is undefined");
}
here: https://github.com/libsql/libsql-node-sqlite3/blob/main/src/database.ts#L47 Assign it to me if I should send a PR and test it
Pete Hunt pointed out that passing an
undefined
token doesn't throw any errors.