@marinoscar/platform-infra 0.1.0-next.21 → 0.1.0-next.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -9,8 +9,18 @@ import java.time.Instant
|
|
|
9
9
|
|
|
10
10
|
// Wire format: docs/DEVICE-AUTH.md (RFC 8628). Reference client: the CLI's device login (@marinoscar/platform-cli).
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* [returnUri] is where the activation page sends the user after a successful approval (the app's deep link or an
|
|
14
|
+
* https App Link). The server accepts `https:` and the schemes of `IdentityModule.forRoot({ deviceFlow })`; null is
|
|
15
|
+
* omitted from the request (`explicitNulls = false`).
|
|
16
|
+
*/
|
|
12
17
|
@Serializable
|
|
13
|
-
data class DeviceClientInfo(
|
|
18
|
+
data class DeviceClientInfo(
|
|
19
|
+
val deviceName: String,
|
|
20
|
+
val userAgent: String,
|
|
21
|
+
val tokenType: String = "pat",
|
|
22
|
+
val returnUri: String? = null,
|
|
23
|
+
)
|
|
14
24
|
|
|
15
25
|
@Serializable
|
|
16
26
|
data class DeviceCodeRequest(val clientInfo: DeviceClientInfo)
|
package/package.json
CHANGED