syui 2 months ago
parent 469f9e17d3
commit 0852cd107a
Signed by: syui
GPG Key ID: 67AC97A939D3EA19

@ -12,4 +12,8 @@ DID_PLC_URL="https://plc.directory"
ADMIN_PASSWORD="admin"
INVITE_REQUIRED="false"
plcUrl="https://plc.directory"
IMG_URI_ENDPOINT="image"
#IMG_URI_ENDPOINT="image"
SMTP_HOST="smtp.gmail.com"
SMTP_USERNAME="gmail-username"
SMTP_PASSWORD="2fa-app-password"
PUBLIC_URL="https://img.example.com"

@ -4,10 +4,23 @@ at protocol on fly.io
- https://github.com/bluesky-social/did-method-plc
### url
https://plc.directory/export
https://plc.directory/did:plc:schldsdljwxcdtslnbqaoifh
https://syui.ai/xrpc/com.atproto.repo.describe?user=syui.syui.ai
### build
```sh
# m1-mac
$ node -v
v18.14.1
$ npm -v
9.6.1
$ git clone https://github.com/syui/atproto
$ cd !$:t
$ npm config edit
@ -101,6 +114,10 @@ curl -X POST -H "Content-Type: application/json" -d "$json" $url
Ok
```
### api
> packages/api/src/client/lexicons.ts
### session
```sh
@ -111,7 +128,7 @@ $ pass=xxx
$ curl -X POST -H "Content-Type: application/json" -d "{\"handle\":\"$user.$host\",\"password\":\"$pass\"}" https://$host/xrpc/com.atproto.session.create
```
### profile
### account profile
```sh
$ url="https://$host/xrpc/app.bsky.actor.getProfile?actor=syui.syui.ai"
@ -129,3 +146,16 @@ $ url=https://$host/xrpc/com.atproto.account.createInviteCode
$ json="{\"useCount\":5}"
$ curl -X POST -u admin:${admin_password} -H "Content-Type: application/json" -d "$json" $url
```
### handle too short
`change : 3 -> 1`
> pakcages/identifier/src/handle.ts
```js
if (front.length < 1) {
throw new InvalidHandleError('Handle too short')
}
```

Loading…
Cancel
Save