Skip to content

Commit

Permalink
fix: add user accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie authored Oct 29, 2024
1 parent 2d49037 commit c01a5fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions adapters/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ type GothSession struct {
DeletedAt gorm.DeletedAt `json:"deleted_at"`
}

// GetUser returns the user of the session.
func (s *GothSession) GetUser() GothUser {
return s.User
}

// GothCsrfToken is a CSRF token for a user
type GothCsrfToken struct {
// ID is the unique identifier of the CSRF token.
Expand Down

0 comments on commit c01a5fd

Please sign in to comment.