Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 2e8fa8a

Browse files
Rephrasing
1 parent 4551118 commit 2e8fa8a

File tree

1 file changed

+9
-9
lines changed
  • content/en/user-guide/aws/pinpoint

1 file changed

+9
-9
lines changed

content/en/user-guide/aws/pinpoint/index.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ The following output would be retrieved:
9898

9999
The operations [`SentOTPMessage`](https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-otp.html#SendOTPMessage) and [`VerifyOTPMessage`](https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-verify-otp.html#VerifyOTPMessage) are used for one-time password (OTP) verification.
100100

101-
On production AWS, `SendOTPMessage` sends an actual SMS text message with the OTP code.
101+
On production AWS, `SendOTPMessage` sends an SMS text message with the OTP code.
102102
The OTP can then be verified against the reference ID using `VerifyOTPMessage`
103103

104-
LocalStack however can not send an actual SMS text message with the OTP code.
105-
There are alternative ways to retrieve the true OTP code as illustrated below:
104+
LocalStack however can not send an real SMS text messages.
105+
Instead it provides alternative ways to retrieve the actual OTP code as illustrated below:
106106

107107
{{< command >}}
108108
$ awslocal pinpoint send-otp-message \
@@ -111,7 +111,7 @@ $ awslocal pinpoint send-otp-message \
111111
"BrandName": "LocalStack Community",
112112
"Channel": "SMS",
113113
"DestinationIdentity": "+1224364860",
114-
"ReferenceId": "meetup2024",
114+
"ReferenceId": "liftoffcampaign",
115115
"OriginationIdentity": "+1123581321",
116116
"CodeLength": 6,
117117
"AllowedAttempts": 3,
@@ -129,14 +129,14 @@ $ awslocal pinpoint send-otp-message \
129129
You can use the debug endpoint `/_aws/pinpoint/<application_id>/<reference_id>` to retrieve the OTP message details:
130130

131131
{{< command >}}
132-
$ curl http://localhost:4566/_aws/pinpoint/fff5a801e01643c18a13a763e22a8fbf/meetup2024 | jq .
132+
$ curl http://localhost:4566/_aws/pinpoint/fff5a801e01643c18a13a763e22a8fbf/liftoffcampaign | jq .
133133
{
134134
"AllowedAttempts": 3,
135135
"BrandName": "LocalStack Community",
136136
"CodeLength": 6,
137137
"DestinationIdentity": "+1224364860",
138138
"OriginationIdentity": "+1123581321",
139-
"ReferenceId": "meetup2024",
139+
"ReferenceId": "liftoffcampaign",
140140
"ValidityPeriod": 2,
141141
"Attempts": 0,
142142
"ApplicationId": "fff5a801e01643c18a13a763e22a8fbf",
@@ -148,7 +148,7 @@ $ curl http://localhost:4566/_aws/pinpoint/fff5a801e01643c18a13a763e22a8fbf/meet
148148
Futhermore, the OTP code is printed as an `INFO` level log message:
149149

150150
```text
151-
2024-10-17T11:08:24.044 INFO : OTP for application ID fff5a801e01643c18a13a763e22a8fbf reference ID meetup2024: 655745
151+
2024-10-17T11:08:24.044 INFO : OTP for application ID fff5a801e01643c18a13a763e22a8fbf reference ID liftoffcampaign: 655745
152152
```
153153

154154
It can then verified using:
@@ -157,7 +157,7 @@ It can then verified using:
157157
$ awslocal pinpoint verify-otp-message \
158158
--application-id fff5a801e01643c18a13a763e22a8fbf \
159159
--verify-otp-message-request-parameters '{
160-
"ReferenceId": "meetup2024",
160+
"ReferenceId": "liftoffcampaign",
161161
"DestinationIdentity": "+1224364860",
162162
"Otp": "655745"
163163
}'
@@ -170,5 +170,5 @@ $ awslocal pinpoint verify-otp-message \
170170
</disable-copy>
171171
{{< /command >}}
172172

173-
When validating OTP codes, LocalStack accounts for the number of allowed attempts and the validity period.
173+
When validating OTP codes, LocalStack checks for the number of allowed attempts and the validity period.
174174
Unlike AWS, there is no lower limit for validity period.

0 commit comments

Comments
 (0)