1.0.3 • Published 4 years ago

truecaller-auth v1.0.3

Weekly downloads
15
License
MIT
Repository
github
Last release
4 years ago

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