refactor: reorganize imports

This commit is contained in:
Elias Schneider
2025-04-28 10:40:43 +02:00
parent 86d2b5f59f
commit 4614769b84
2 changed files with 4 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ package middleware
import (
"errors"
"github.com/gin-gonic/gin"
"github.com/pocket-id/pocket-id/backend/internal/common"
"github.com/pocket-id/pocket-id/backend/internal/service"

View File

@@ -7,7 +7,6 @@ import (
"encoding/json"
"errors"
"fmt"
"gorm.io/gorm/clause"
"log"
"mime/multipart"
"os"
@@ -16,6 +15,8 @@ import (
"strings"
"time"
"gorm.io/gorm/clause"
"github.com/lestrrat-go/jwx/v3/jwt"
"github.com/pocket-id/pocket-id/backend/internal/common"
@@ -1080,7 +1081,7 @@ func (s *OidcService) VerifyDeviceCode(ctx context.Context, userCode string, use
}
if !hasAuthorizedClient {
err := s.createAuthorizedClientInternal(ctx, deviceAuth.ClientID, userID, deviceAuth.Scope, tx)
err := s.createAuthorizedClientInternal(ctx, userID, deviceAuth.ClientID, deviceAuth.Scope, tx)
if err != nil {
return err
}