| 24 | ) |
| 25 | |
| 26 | type sessionStore struct { |
| 27 | mu sync.Mutex |
| 28 | sessions map[string]time.Time |
| 29 | // path, when non-empty, persists sessions to disk so browser logins survive a |
| 30 | // server restart (opt-in via ZENNOTES_PERSIST_SESSIONS). |
| 31 | path string |
| 32 | } |
| 33 | |
| 34 | type attemptLimiter struct { |
| 35 | mu sync.Mutex |
nothing calls this directly
no outgoing calls
no test coverage detected