Skip to content

Commit

Permalink
Update docs/_partials/reverification-route-handler.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisintech authored Nov 26, 2024
1 parent 3da42ae commit ca8e9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_partials/reverification-route-handler.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The following example uses the [`has()`](/docs/references/nextjs/auth#has) helper to check if the user has verified their credentials within a specific time period. The `strict` configuration sets the time period to 10 minutes. If the user hasn't verified their credentials within 10 minutes, the `reverificationErrorResponse` utility is used to return an error and initiate the session reverification flow on the client-side.
The following example uses the [`has()`](/docs/references/nextjs/auth-object#has) helper to check if the user has verified their credentials within a specific time period. The `strict` configuration sets the time period to 10 minutes. If the user hasn't verified their credentials within 10 minutes, the `reverificationErrorResponse` utility is used to return an error and initiate the session reverification flow on the client-side.

```tsx {{ filename: 'app/api/reverification-example/route.ts' }}
import { auth, reverificationErrorResponse } from '@clerk/nextjs/server'
Expand Down

0 comments on commit ca8e9b0

Please sign in to comment.