From 8ba496277f01ac730881bd58787363c9736d8cd8 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 3 Sep 2024 11:25:51 +0200 Subject: [PATCH] feat(spot): fixed jwt token expiration date --- backend/pkg/spot/auth/authorizer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())) }