Pick your platform below for the shortest path to a working "Sign in with Paspo ID" button. Each snippet assumes you already have a clientId (or app package/signature) registered with Paspo ID — see Support if you don't yet.
// build.gradle
dependencies {
implementation("id.paspo:sdk:1.2.0")
}
PaspoSignInButton(
nonceProvider = backend::requestSsoNonce,
onResult = ::onPaspoResult,
)
// Package.swift
.package(url: "https://github.com/paspoid/ios", from: "1.0.0")
// Authenticate
PaspoID.shared.authenticate(from: viewController) { result in
switch result {
case .success(let token): break // user authenticated
case .failure(let error): break // handle error
}
}
npm install @pingocean/paspo-sdk
import { signIn, takeVerifier } from '@pingocean/paspo-sdk'
button.onclick = () => signIn({
clientId: 'YOUR_CLIENT_ID',
redirectUri: location.origin + '/auth/paspo/callback',
scope: 'openid email',
onSuccess: ({ code, state }) => {
// send to your server: { code, code_verifier: takeVerifier(state) }
},
})
curl -X POST https://api.paspo.id/v1/verify \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"token": "USER_AUTH_TOKEN"}'
npm install @pingocean/paspo-sdk or a <script> tag, with guides for React, Vue, Angular and Svelte and ready AI prompts. Start at Web SDK → Overview.