Add pre-assume enrolled device status query
The /enroll wait UI polled device state via node(), which requires an assumed org session, so confirmation never succeeded for unassumed viewers. Expose viewer.enrolledDevice behind itam:employee-device:get (own-device, skip assumption) and point the poller at it. Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
@@ -31,4 +31,7 @@ type Viewer {
|
||||
before: CursorKey
|
||||
orderBy: DeviceOrder
|
||||
): DeviceConnection! @goField(forceResolver: true)
|
||||
|
||||
# Own-device read for self-enrollment status polling before org assumption.
|
||||
enrolledDevice(id: ID!): Device @goField(forceResolver: true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user