fix: trigger session by id in verifySessionToken (#6325)

(cherry picked from commit 11b5a73551)
This commit is contained in:
Tim Möhlmann 2023-08-04 18:16:27 +03:00 committed by Livio Spring
parent 6959392fab
commit 27513b7bfd
No known key found for this signature in database
GPG Key ID: 26BB1C2FA5952CF0

View File

@ -147,7 +147,7 @@ func (repo *TokenVerifierRepo) verifySessionToken(ctx context.Context, sessionID
ctx, span := tracing.NewSpan(ctx)
defer func() { span.EndWithError(err) }()
session, err := repo.Query.SessionByID(ctx, false, sessionID, token)
session, err := repo.Query.SessionByID(ctx, true, sessionID, token)
if err != nil {
return "", "", "", err
}