Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 684 Bytes

File metadata and controls

26 lines (21 loc) · 684 Bytes

truecaller

An npm module which provides an easy way to verify Truecaller user profiles on the server side.

Installation

npm install truecaller

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
        ...
    }
});

Coming soon

- Examples
- Test cases