Skip to content

Commit

Permalink
docs: Updated README.md
Browse files Browse the repository at this point in the history
- Corrected the ordered list
  • Loading branch information
adevinwild committed Jul 1, 2024
1 parent 07f44af commit 31b351d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ export async function POST(req: MedusaRequest, res: MedusaResponse) {
```

<p> Now whenever a customer logs in, it will no more register a connect_sid cookie, instead, it will generate a new OTP.</p>

<h3>4. Subscribing to the event</h3>
<p> You can subscribe to the event <code>TOTPService.Events.GENERATED</code> to be notified when a new OTP is generated, the key used here for example is the customer ID :</p>

```ts
Expand Down Expand Up @@ -300,7 +302,7 @@ export const config: SubscriberConfig = {

<p>Your customer will now receive an OTP in their email, let's see how to verify it once it's consumed by your customer.</p>

<h3>4. Verifying the OTP</h3>
<h3>5. Verifying the OTP</h3>
<p>
We're now going to create a new route to verify the OTP, this route will be called by the customer when they want to log in, we're going to use the <code>TOTPService</code> to verify the OTP and authenticate the customer.
</p>
Expand Down

0 comments on commit 31b351d

Please sign in to comment.