Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 794 Bytes

README.md

File metadata and controls

49 lines (35 loc) · 794 Bytes

Passkeys React App

Get started with Passkeys in just 8 lines of code

yarn create react-app passkeys-react --template typescript
yarn add @passkeys/core @passkeys/react

Generate a random UUID

Example : 12345678-abcd-efgh-ijkl-mnopqrstuvwx

For production request one here [[email protected]]

Import

import { createWallet } from '@passkeys/core';
import { WalletProvider } from '@passkeys/react';

Create wallet

const wallet = createWallet({
  appId: '<insert UUID here>',
  providers: {
    solana: true
  }
})

Connect button

const connectWallet = () => {  wallet.providers.solana.connect();};

Display wallet

<WalletProvider>
<WalletWidget />
</WalletProvider>