diff --git a/adapters/adapter.go b/adapters/adapter.go index dc04ee0..e7ea7ba 100644 --- a/adapters/adapter.go +++ b/adapters/adapter.go @@ -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.