···140140141141In the traditional web app backend scenario, a single account (DID) might have multiple active sessions. For example, a user might log in from a browser on their laptop and on a mobile device at the same time. The user must go through the entire flow on each device (or browser) to authenticate the user. To prevent a new session from "clobbering" existing sessions (including tokens), this package supports multiple concurrent sessions per account, distinguished by a session ID. The random 'state' token from the auth flow is re-used by default.
142142143143-In other scenarious, multiple sessions are not needed or desirable. For example, an integration backend, or tool with very short session lifetimes. In these scenarios, implementations of the [ClientAuthStore] interface could ignore the session ID. Or the [ClientApp] could be configured with an ephemeral [ClientAuthStore] (to support auth flows), and managed the session data returned by [ClientApp.ProcessCallback] using separate session storage logic.
143143+In other scenarios, multiple sessions are not needed or desirable. For example, an integration backend, or tool with very short session lifetimes. In these scenarios, implementations of the [ClientAuthStore] interface could ignore the session ID. Or the [ClientApp] could be configured with an ephemeral [ClientAuthStore] (to support auth flows), and managed the session data returned by [ClientApp.ProcessCallback] using separate session storage logic.
144144*/
145145package oauth
+1-1
atproto/identity/identity.go
···2424 Keys map[string]VerificationMethod
2525}
26262727-// Sub-field type for [Identity], representing a crytographic public key declared as a "verificationMethod" in the DID document.
2727+// Sub-field type for [Identity], representing a cryptographic public key declared as a "verificationMethod" in the DID document.
2828type VerificationMethod struct {
2929 Type string
3030 PublicKeyMultibase string
+1-1
cmd/relay/relay/slurper.go
···504504 return err
505505}
506506507507-// gets a snapshot of current subsription hostnames
507507+// gets a snapshot of current subscription hostnames
508508func (s *Slurper) GetActiveSubHostnames() []string {
509509 s.subsLk.Lock()
510510 defer s.subsLk.Unlock()