Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(auth): explain DPoP clock-skew failures #8383

Closedjuliusmarmingewants to merge 1 commit intomain fromt3code/improve-clock-skew-errorsopened View on GitHub

Showing 24 changed files with 11 additions and 3 deletions (loading 21).

x
0 of 24 viewed, 24 left
3 additions and 2 deletionsapps/mobile/src/features/cloud/linkEnvironment.test.tsModified
View file
@@ -1043,7 +1043,7 @@
- it.effect("preserves relay DPoP auth failures while connecting environments", () =>
+ it.effect("explains relay DPoP clock-skew failures while connecting environments", () =>
Effect.gen(function* () {
vi.stubGlobal(
"fetch",
@@ -1057,6 +1057,7 @@
code: "auth_invalid",
reason: "invalid_dpop",
traceId: "trace-connect",
+ clockSkewSeconds: 25,
{ status: 401 },
@@ -1082,7 +1083,7 @@
expect(error).toMatchObject({
_tag: "CloudEnvironmentLinkError",
message:
- "https://relay.example.test/v1/environments/env-1/connect failed: Relay rejected the DPoP proof.",
+ "https://relay.example.test/v1/environments/env-1/connect failed: This device's clock appears to be out of sync. Enable automatic date and time, then try again.",
traceId: "trace-connect",