Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

`auth login` returns expired token

Đang mở
#308 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
32/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
ios, linux, swift
Lĩnh vực
authentication, cli

Hướng nghiên cứu

The token expiry is set during xtool auth login and xtool setup, so start in the auth code path that stores the login token and its expiry. Reproduce by logging in twice and printing the stored expiry; the first login is fine and later ones are not. Done means a second login yields a future expiry and xtool dev no longer stalls at [Connecting] 100%. The issue references #305 and reports a device-side timeout, so check that thread first.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Description

xtool auth login returns a token with an expiry set to the current time, after first cert.

Similar to #305, first cert on an account works correctly. Subsequently, running xtool setup (or xtool auth login), the login process completes successfully, but the token expiry is listed as the exact same time the command is run (effectively expired immediately). Consequently, running xtool dev after this hangs at [Connecting] 100%.

❯ xtool setup
Select login mode
0: API Key (requires paid Apple Developer Program membership)
1: Password (works with any Apple ID but uses private APIs)
Choice (0-1): 1
Apple ID: <my email here>
Password: <my password here>
Logging in...
Code: <code here>
Logged in.
- Apple ID: <my email here>
- Team ID: <team id here>
- Token expiry: <current time here>
Darwin SDK is up to date.

❯ xtool dev
Planning...
Building for debugging...
[3 / 3] hello-App-product

Build complete! (1.72 secs)
Waiting for device to be connected...
Installing to device: iPhone (udid: <uuid here>)

[Unpacking app] 100%
[Preparing device] 100%
[Provisioning] 100%
[Signing] 100%
[Packaging] 100%
[Connecting] 100%
Error: opTimeout

Environment

Please provide as much of the following information as is relevant.

Host OS: WSL
Host OS version: 10.0.26200.7627 (Windows 11, v25H2, Build 26200.7627)
WSL version: 3.0.3.0
Kernel version: 6.18.54.1-1
WSLg version: 1.0.79
MSRDC version: 1.2.7391
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
WSL Distro: Ubuntu-26.04

iOS device:

ActivationState: Activated
ActivationStateAcknowledged: true
BoardId: 14
BrickState: false
BuildVersion: 20G81
CPUArchitecture: arm64e
CertID: 495958265
ChipID: 33040
DeviceClass: iPhone
DeviceColor: 1
DeviceName: iPhone
FirmwareVersion: iBoot-8422.142.2
FusingStatus: 3
GID1: 0305
HardwareModel: D64AP
HardwarePlatform: t8110
HasSiDP: true
HostAttached: true
HumanReadableProductVersionString: 16.6.1
ModelNumber: MLL63
PRIVersion_Major: 0
PRIVersion_Minor: 1
PRIVersion_ReleaseNo: 164
PairRecordProtectionClass: 4
PartitionType: GUID_partition_scheme
PasswordProtected: false
ProductName: iPhone OS
ProductType: iPhone14,3
ProductVersion: 16.6.1
ProductionSOC: true
ProtocolVersion: 2
TimeIntervalSince1970: 1791612108.4345541
TimeZone: Europe/London
TimeZoneOffsetFromUTC: 3600
TrustedHostAttached: true

Swift version:
Swift version 6.4 (swift-6.4-RELEASE)
Target: x86_64-unknown-linux-gnu

SDK version:
iPhoneOS27.0.sdk

Ngôn ngữ chính
Swift
Star
5.5k
Fork
163
Merge trung bình
18 giờ 29 phút
Pull request đã merge (30 ngày)
27

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của xtool-org/xtool

Tất cả issue của xtool-org/xtool

Issue tương tự

Thêm issue về Swift

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.