truecaller-auth
v1.0.3
Published
A module which provides an easy way to verify Truecaller user profiles on the server side
Downloads
2
Maintainers
Readme
Truecaller Auth
An npm module which provides an easy way to verify Truecaller user profiles on the server side.
Installation
npm install truecaller-auth
Usage
var truecaller = require('truecaller');
var profile = ... // Truecaller profile object from the mobile SDK
truecaller.verifyProfile(profile, function(err, verificationResult) {
if(err) {
// Oops, something went wrong
}
if(verificationResult === true) {
// Server side verification of profile object succeeded, yay
} else {
// Verification failed
...
}
});