File tree 2 files changed +43
-0
lines changed
2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -2451,6 +2451,13 @@ paths:
2451
2451
x-fern-sdk-method-name : refresh
2452
2452
x-fern-audiences :
2453
2453
- public
2454
+ /api/token/rotate :
2455
+ post :
2456
+ $ref : ./resources/tokens.yaml#/paths/~1api~1token~1rotate/post
2457
+ x-fern-sdk-group-name : tokens
2458
+ x-fern-sdk-method-name : rotate
2459
+ x-fern-audiences :
2460
+ - public
2454
2461
components :
2455
2462
securitySchemes :
2456
2463
Token :
Original file line number Diff line number Diff line change @@ -51,6 +51,33 @@ paths:
51
51
" 401 " :
52
52
description : " Invalid refresh token"
53
53
54
+ /api/token/rotate :
55
+ post :
56
+ summary : Rotate token
57
+ description : >
58
+ Blacklist existing refresh token, and get a new refresh token.
59
+ requestBody :
60
+ content :
61
+ application/json :
62
+ schema :
63
+ type : object
64
+ required :
65
+ - refresh
66
+ properties :
67
+ refresh :
68
+ type : string
69
+ description : JWT refresh token
70
+ responses :
71
+ " 200 " :
72
+ description : " Refresh token successfully rotated"
73
+ content :
74
+ application/json :
75
+ schema :
76
+ $ref : " #/components/schemas/RotateTokenResponse"
77
+ " 400 " :
78
+ description : " Invalid refresh token"
79
+
80
+
54
81
/api/token/blacklist :
55
82
post :
56
83
summary : Blacklist token
@@ -130,6 +157,15 @@ components:
130
157
type : string
131
158
description : New JWT access token
132
159
160
+ RotateTokenResponse :
161
+ type : object
162
+ required :
163
+ - refresh
164
+ properties :
165
+ refresh :
166
+ type : string
167
+ description : New JWT refresh token
168
+
133
169
JWTSettingsResponse :
134
170
type : object
135
171
required :
You can’t perform that action at this time.
0 commit comments