Skip to content

Commit c5e1ee4

Browse files
author
patched.codes[bot]
committed
Patched /Users/codelion/Documents/GitHub/stack/docs/fern/docs/pages/sdk/password-reset.mdx
1 parent bab0670 commit c5e1ee4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: PasswordReset
3+
---
4+
5+
# PasswordReset
6+
7+
A component for handling password reset functionality. It displays different messages based on the validity and state of the password reset code.
8+
9+
## Props
10+
11+
- `searchParams`: `Record<string, string>` - An object containing search parameters, including the password reset code.
12+
- `fullPage` (optional): `boolean` - Determines if the component should be displayed in full-page mode. Defaults to `false`.
13+
14+
## Example
15+
16+
```tsx
17+
import { PasswordReset } from '@stackframe/stack';
18+
19+
function ResetPasswordPage() {
20+
const searchParams = { code: 'reset123' };
21+
22+
return (
23+
<PasswordReset
24+
searchParams={searchParams}
25+
fullPage={true}
26+
/>
27+
);
28+
}
29+
```

0 commit comments

Comments
 (0)