Privy ID Software Development Kit
<script src="http://unpkg.com/privy-sdk"></script>
Privy.init({
merchantKey: '< Your Merhant Key>',
})
<div class="privy-login-btn" data-width="inline" data-size="medium"></div>
- small
- medium
- large
- inline
- full
- red
- white
- solid
- outline
- en
- id
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>
Add dev: true
to change endpoint to development
Privy.init({
merchantKey: '< Your Merhant Key>',
dev: true,
})
This project is licensed under the MIT License - see the LICENSE file for details