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
Copy file name to clipboardExpand all lines: src/pages/cli/auth/admin.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -267,7 +267,7 @@ class MyCustomInterceptor: URLRequestInterceptor {
267
267
268
268
## Adding Admin Actions
269
269
270
-
To add additional admin actions that are not included by default but are enabled by Amazon Cognito, you will need to update the Lambda function code that is generated for you. The change will include adding a procedure for the action and creating a route for it. You will then associate the procedure to the route within the [Express](https://expressjs.com/) app.
270
+
To add additional admin actions that are not included by default but are enabled by Amazon Cognito, you will need to update the Lambda function code that is generated for you. The change will include adding a route handler for the action and creating a route for it. You will then associate the route handler to the route within the [Express](https://expressjs.com/) app.
271
271
272
272
Below is an example of how to add an admin action that will allow you to [update a user's attributes](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminUpdateUserAttributes.html).
273
273
```js
@@ -293,9 +293,9 @@ async function updateUserAttributes(username, attributes) {
293
293
}
294
294
}
295
295
```
296
-
Once the procedure is defined, you will then add a route with the correct HTTP method to the Express app and associate the procedure to the route. Be sure to make the route unique.
296
+
Once the route handler is defined, you will then add a route with the correct HTTP method to the Express app and associate the route handler to the route. Be sure to make the route unique.
297
297
298
-
Below is an example of how you can add a `POST` route named `/updateUserAttributes` and associate the above procedure to it.
298
+
Below is an example of how you can add a `POST` route named `/updateUserAttributes` and associate the above route handler to it.
0 commit comments