Skip to content

Commit

Permalink
fix: correct expand in whoami call
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jul 6, 2023
1 parent b75313e commit 48e17a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions session/manager_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,7 @@ func (s *ManagerHTTP) FetchFromRequest(ctx context.Context, r *http.Request) (_
return nil, errors.WithStack(NewErrNoCredentialsForSession())
}

expand := identity.ExpandDefault
se, err := s.r.SessionPersister().GetSessionByToken(ctx, token, ExpandEverything, expand)
se, err := s.r.SessionPersister().GetSessionByToken(ctx, token, ExpandEverything, identity.ExpandDefault)
if err != nil {
if errors.Is(err, herodot.ErrNotFound) || errors.Is(err, sqlcon.ErrNoRows) {
return nil, errors.WithStack(NewErrNoActiveSessionFound())
Expand Down

0 comments on commit 48e17a5

Please sign in to comment.