diff --git a/backend/pkg/spot/auth/authorizer.go b/backend/pkg/spot/auth/authorizer.go index e60b5acc1..1cc972add 100644 --- a/backend/pkg/spot/auth/authorizer.go +++ b/backend/pkg/spot/auth/authorizer.go @@ -9,5 +9,5 @@ func (a *authImpl) IsAuthorized(authHeader string, permissions []string, isExten if err != nil { return nil, err } - return authUser(a.pgconn, jwtInfo.UserId, jwtInfo.TenantID, int(jwtInfo.IssuedAt.Unix())) + return authUser(a.pgconn, jwtInfo.UserId, jwtInfo.TenantID, int(jwtInfo.ExpiresAt.Unix())) }