Skip to content

ExodusMovement/passkeys-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

Releases

No releases published

Packages

No packages published