Monorepo for wisp.place. A static site hosting service built on top of the AT Protocol. wisp.place

suggestion: cli should store oauth tokens #33

open opened by l4.pm

currently every deploy that I'm making of this form:

wispctl deploy -p dist/ -s atvouch.dev

asks both for:

  1. handle for deployment
  2. full oauth flow for my handle

I can see there's a --store <path> argument to wispctl deploy, but it may be more useful to keep state somewhere else automatically e.g ~/.config/wispctl/state.sqlite? could key handles by the current directory so you could login to multiple accounts on separate folders for their respective deployments

this is not required as part of this suggestion, but if the oauth tokens made by wispctl could be a full superset of all the operations wispctl needs (all the records needing to be read/written) that would be an UX boost since people wouldn't have to continuously re-login

i actually had it working fine when it was written in rust and then kept continuously forgetting to fix it after porting. an annoying issue is that the reference pds only gives refresh tokens that last 24 hours to 127.0.0.1. Keying by directory is pretty smart

l4.pm (author)

24 hours is fine if I'm doing multiple deployments in a day (and I am)

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:ghmhveudel6es5chzycsi2hi/sh.tangled.repo.issue/3mglzzj2sdt22