summaryrefslogtreecommitdiff
path: root/matrix-specification/Requests/ClientRefreshPostRequest.php
diff options
context:
space:
mode:
Diffstat (limited to 'matrix-specification/Requests/ClientRefreshPostRequest.php')
-rw-r--r--matrix-specification/Requests/ClientRefreshPostRequest.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/matrix-specification/Requests/ClientRefreshPostRequest.php b/matrix-specification/Requests/ClientRefreshPostRequest.php
new file mode 100644
index 0000000..733ca75
--- /dev/null
+++ b/matrix-specification/Requests/ClientRefreshPostRequest.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace Matrix\Requests;
+
+class ClientRefreshPostRequest implements RateLimited, \JsonSerializable
+{
+ public function __construct(
+ private string $refreshToken,
+ )
+ {}
+
+ public function jsonSerialize(): array
+ {
+ return [
+ "refresh_token" => $this->refreshToken,
+ ];
+ }
+}