2.0.3 • Published 3 years ago

privy-sdk v2.0.3

Weekly downloads
157
License
MIT
Repository
-
Last release
3 years ago

PRIVY SDK

Privy ID Software Development Kit

npm version

Login with PrivyID Button

Step 1: Include Privy SDK

<script src="http://unpkg.com/privy-sdk"></script>

Step 2: Init SDK and place your Merchant Key

Privy.init({
  merchantKey: '< Your Merhant Key>',
})

Step 3: Place this code in wherever you want login button appear in your page

<div class="privy-login-btn" data-width="inline" data-size="medium"></div>

Options

data-size

  • small
  • medium
  • large

data-width

  • inline
  • full

data-color

  • red
  • white

data-style

  • solid
  • outline

data-lang

  • en
  • id

Custom Button

You can create custome login button

<button onclick="loginWithPrivy">
  Login with Privy
</button>
...
...
<script>
  Privy.init({
    merchantKey: '< Your Merhant Key>',
  })

  function loginWithPrivy () {
    Privy.login()
  }
</script>

Development Mode

Add dev: true to change endpoint to development

Privy.init({
  merchantKey: '< Your Merhant Key>',
  dev: true,
})

License

This project is licensed under the MIT License - see the LICENSE file for details

2.0.3

3 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

5 years ago

2.0.0-alpha.1

5 years ago

2.0.0-alpha.0

5 years ago

2.0.0-alpha

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago