Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
docs: add section about rendering QR code
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-grover committed Sep 23, 2023
1 parent 98b8a54 commit 8175e22
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,27 @@ export default function LoginButton() {
}
```

After the user clicks the sign in button, you'll need to render a QR code so they can add the signer from the Warpcast mobile app. You can do this with a package like [`react-qr-code`](https://github.com/rosskhanas/react-qr-code):

```tsx
'use client'

import { useSigner } from 'neynar-next'
import QRCode from 'react-qr-code'

export default function QRCodeModal() {
const { signer } = useSigner()

if (signer?.status !== 'pending_approval') return null

return (
<div className="modal">
<QRCode value={signer.signer_approval_url} />
</div>
)
}
```

### Fetch feed

Add the API to your server:
Expand Down

0 comments on commit 8175e22

Please sign in to comment.