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:<version>")
}
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
}
}
<script src="https://cdn.paspo.id/qr-sdk.js"></script>
<div id="qr-container"></div>
<script>
const paspo = new PaspoQR({
clientId: 'YOUR_CLIENT_ID',
container: '#qr-container',
onSuccess: (token) => { /* user authenticated */ }
})
paspo.render()
</script>
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"}'