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

Closed nekomimi.pet
Closed opened by nekomimi.pet

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

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

i have this in i just need to release new binaries after i verify that it doesnt break existing CI spindles

Sign up or Sign in to add to the discussion.