this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

doc: delete session to log out

+6 -2
+6 -2
atproto/auth/oauth/doc.go
··· 86 86 http.Redirect(w, r, "/app", http.StatusFound) 87 87 } 88 88 89 - Finally, sessions can be resumed and used to make authenticated API calls to the user's host: 89 + Sessions can be resumed and used to make authenticated API calls to the user's host: 90 90 91 91 // web services might use a secure session cookie to determine user's DID for a request 92 92 did := syntax.DID("did:plc:abc123") ··· 114 114 115 115 The [ClientSession] will handle nonce updates and token refreshes, and persist the results in the [OAuthStore]. 116 116 117 - TODO: logout 117 + To log out a user, delete their session from the [OAuthStore]: 118 + 119 + if err := oauthApp.Store.DeleteSession(r.Context(), did); err != nil { 120 + return err 121 + } 118 122 */ 119 123 package oauth