MCPcopy Create free account
hub / github.com/dnote/dnote / DeleteSession

Method DeleteSession

pkg/server/app/sessions.go:59–65  ·  view source on GitHub ↗

DeleteSession deletes the session that match the given info

(sessionKey string)

Source from the content-addressed store, hash-verified

57
58// DeleteSession deletes the session that match the given info
59func (a *App) DeleteSession(sessionKey string) error {
60 if err := a.DB.Where("key = ?", sessionKey).Delete(&database.Session{}).Error; err != nil {
61 return errors.Wrap(err, "deleting the session")
62 }
63
64 return nil
65}

Callers 1

logoutMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected