https://github.com/exodusmovement/passkeys-react
Passkeys React Demo
https://github.com/exodusmovement/passkeys-react
Last synced: 4 months ago
JSON representation
Passkeys React Demo
- Host: GitHub
- URL: https://github.com/exodusmovement/passkeys-react
- Owner: ExodusMovement
- Created: 2024-12-11T03:01:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-12T21:08:08.000Z (over 1 year ago)
- Last Synced: 2025-03-29T10:23:03.294Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://passkeys-react.vercel.app
- Size: 206 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Passkeys React App
Get started with Passkeys in just 8 lines of code
```bash
yarn create react-app passkeys-react --template typescript
```
```bash
yarn add @passkeys/core @passkeys/react
```
***Generate a random UUID***
Example : 12345678-abcd-efgh-ijkl-mnopqrstuvwx
For production request one here [hello@passkeys.foundation]
Import
```react file=index.tsx
import { createWallet } from '@passkeys/core';
import { WalletProvider, WalletWidget } from '@passkeys/react';
```
Create wallet
```react file=index.tsx
const wallet = createWallet({
appId: '',
providers: {
solana: true
}
})
```
Connect button
```react
const connectWallet = () => { wallet.providers.solana.connect();};
```
Display wallet
```react
```