Skip to content

Commit 73fe70a

Browse files
committed
add api method to change password using JWT
There is a way to check the change password using JWT but not to do the actual change.
1 parent d70d3af commit 73fe70a

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"uri": "/api/user/change-password",
3+
"comments": [
4+
"Changes a user's password using their access token (JWT) instead of the changePasswordId",
5+
"A common use case for this method will be if you want to allow the user to change their own password.",
6+
"",
7+
"Remember to send refreshToken in the request body if you want to get a new refresh token when login using the returned oneTimePassword."
8+
],
9+
"method": "post",
10+
"methodName": "changePasswordByJWT",
11+
"successResponse": "ChangePasswordResponse",
12+
"errorResponse": "Errors",
13+
"anonymous": true,
14+
"authorization": "\"Bearer \" + encodedJWT",
15+
"params": [
16+
{
17+
"name": "encodedJWT",
18+
"comments": [
19+
"The encoded JWT (access token)."
20+
],
21+
"type": "notUsed",
22+
"javaType": "String"
23+
},
24+
{
25+
"name": "request",
26+
"comments": [
27+
"The change password request that contains all the information used to change the password."
28+
],
29+
"type": "body",
30+
"javaType": "ChangePasswordRequest"
31+
}
32+
]
33+
}

0 commit comments

Comments
 (0)