···
comatproto "github.com/bluesky-social/indigo/api/atproto"
15
+
"github.com/bluesky-social/indigo/atproto/syntax"
lexutil "github.com/bluesky-social/indigo/lex/util"
"github.com/gliderlabs/ssh"
"github.com/go-chi/chi/v5"
···
32
+
tidClock *syntax.TIDClock
func Make() (*State, error) {
···
50
-
return &State{db, auth, enforcer}, nil
52
+
clock := syntax.NewTIDClock(0)
54
+
return &State{db, auth, enforcer, clock}, nil
57
+
func (s *State) TID() string {
58
+
return s.tidClock.Next().String()
func (s *State) Login(w http.ResponseWriter, r *http.Request) {
···
resp, err := comatproto.RepoPutRecord(r.Context(), client, &comatproto.RepoPutRecord_Input{
Collection: tangled.PublicKeyNSID,
205
-
Rkey: uuid.New().String(),
Record: &lexutil.LexiconTypeDecoder{
Created: time.Now().Format(time.RFC3339),
···
resp, err := comatproto.RepoPutRecord(r.Context(), client, &comatproto.RepoPutRecord_Input{
Collection: tangled.KnotMemberNSID,
414
-
Rkey: uuid.New().String(),
Record: &lexutil.LexiconTypeDecoder{
Val: &tangled.KnotMember{
Member: memberIdent.DID.String(),