You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -33,16 +36,16 @@ public function __invoke(array $context = []): OpenApi {
33
36
$cookiePrefix = $this->cookiePrefix;
34
37
$pathItem = newModel\PathItem(
35
38
ref: 'JWT Token',
36
-
post: newModel\Operation(
39
+
post: newOperation(
37
40
operationId: 'postCredentials',
38
41
tags: ['Login'],
39
42
responses: [
40
-
'204' => [
41
-
'description' =>"Get a JWT token split across the two cookies {$cookiePrefix}jwt_hp and {$cookiePrefix}jwt_s. Also returns a refresh token in {$cookiePrefix}refresh_token",
42
-
],
43
+
'204' => newResponse(
44
+
description:"Get a JWT token split across the two cookies {$cookiePrefix}jwt_hp and {$cookiePrefix}jwt_s. Also returns a refresh token in {$cookiePrefix}refresh_token",
45
+
),
43
46
],
44
47
summary: 'Log in using email and password.',
45
-
requestBody: newModel\RequestBody(
48
+
requestBody: newRequestBody(
46
49
description: 'Generate new JWT Token by logging in',
@@ -13,15 +15,15 @@ public function __invoke(array $context = []): OpenApi {
13
15
$openApi = ($this->decorated)($context);
14
16
15
17
$cookiePrefix = $this->cookiePrefix;
16
-
$pathItem = newModel\PathItem(
18
+
$pathItem = newPathItem(
17
19
ref: 'JWT Token Refresh',
18
-
post: newModel\Operation(
20
+
post: newOperation(
19
21
operationId: 'postRefreshToken',
20
22
tags: ['JWT Refresh'],
21
23
responses: [
22
-
'204' => [
23
-
'description' =>"Get a refreshed JWT token split across the two cookies {$cookiePrefix}jwt_hp and {$cookiePrefix}jwt_s. Also returns a new refresh token {$cookiePrefix}refresh_token.",
24
-
],
24
+
'204' => newResponse(
25
+
description:"Get a refreshed JWT token split across the two cookies {$cookiePrefix}jwt_hp and {$cookiePrefix}jwt_s. Also returns a new refresh token {$cookiePrefix}refresh_token.",
0 commit comments