Update docs, bump version

This commit is contained in:
Jon Staab
2025-09-05 09:30:27 -07:00
parent 0382dd479a
commit 8716d1fdb1
16 changed files with 30 additions and 21 deletions
+6
View File
@@ -20,6 +20,7 @@ Manages authentication state for a socket connection.
**Methods:**
- `doAuth(sign)` - Authenticate with the relay using provided signing function
- `attemptAuth(sign)` - Attempt authentication with timeout handling
- `retryAuth(sign)` - Retry authentication by resetting state and attempting auth again
- `cleanup()` - Clean up event listeners
**Events:**
@@ -39,4 +40,9 @@ authState.on(AuthStateEvent.Status, (status) => {
await authState.attemptAuth(async (template) => {
return await signer.signEvent(template)
})
// Retry authentication if needed
await authState.retryAuth(async (template) => {
return await signer.signEvent(template)
})
```