feat: added refresh tokens

This commit is contained in:
2026-08-03 11:41:03 +02:00
parent 3b4a6cba82
commit 8fefc5d5c7
5 changed files with 172 additions and 19 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ func WithJWT(authService *domain.AuthService) func(http.HandlerFunc) http.Handle
return
}
authContext, err := authService.ParseToken(ctx, parts[1])
authContext, err := authService.ParseAccessToken(ctx, parts[1])
if err != nil {
slog.ErrorContext(ctx, "invalid token", slog.Any("error", err))
response.Error(ctx, w, http.StatusUnauthorized, "invalid or expired token")