Skip to content

Commit 4b5814f

Browse files
author
patched.codes[bot]
committed
Patched /Users/codelion/Documents/GitHub/stack/docs/fern/docs/pages/sdk/email-verification.mdx
1 parent 6b57134 commit 4b5814f

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: EmailVerification
3+
---
4+
5+
# EmailVerification
6+
7+
A component for handling email verification processes. It displays appropriate messages based on the verification status.
8+
9+
## Parameters
10+
11+
- `searchParams` (optional): `Record<string, string>` - An object containing search parameters. It should have a `code` property for the verification code.
12+
- `fullPage` (optional): `boolean` - Determines if the component should be displayed in full-page mode. Default is `false`.
13+
14+
## Example
15+
16+
```tsx
17+
import { EmailVerification } from '@stackframe/stack';
18+
19+
// Basic usage
20+
<EmailVerification />
21+
22+
// With search params and full page mode
23+
<EmailVerification
24+
searchParams={{ code: 'verification_code_here' }}
25+
fullPage={true}
26+
/>
27+
```
28+
29+
This component uses `useStackApp` internally and handles various verification scenarios, displaying appropriate messages for invalid, expired, or successful verifications.

0 commit comments

Comments
 (0)