skdb icon indicating copy to clipboard operation
skdb copied to clipboard

"Access key" or "user ID"?

Open ltique opened this issue 1 year ago • 1 comments

The CLI talks about "access keys":

$ npx skdb --help
Usage: bin/skdb-cli [--help]                      
    [--access-key <key>]  -- Access key to use. Default: first specified in credentials file.

but skdb_users uses "userID":

root@ws://localhost:3586/chat-app> .schema
CREATE TABLE skdb_users (
  userID TEXT PRIMARY KEY,
  privateKey TEXT NOT NULL
);

I guess "user ID" is now the preferred terminology?

ltique avatar Feb 18 '24 09:02 ltique

Yeah we should converge. I avoided 'user' in the auth because you don't choose your id, it's generated. This is a common pattern with web services and they usually call this 'access key'. But semantically this equates to a user of skdb and internally we prefer the term user as that makes things clearer in that context.

gregsexton avatar Feb 19 '24 10:02 gregsexton

Closing skdb-specific issues as skdb in its current form is being deprecated.

beauby avatar Sep 30 '24 18:09 beauby