npm.io
0.1.0 • Published 10 years ago

validate-social-access-tokens

Licence
MIT
Version
0.1.0
Deps
2
Vulns
1
Weekly
0

validate-social-access-tokens Build Status

A simple module that let's you validate access tokens from social logins

Install

$ npm install --save validate-social-access-tokens

Usage

validateSocialAccessTokens = require('validate-social-access-tokens');

validateSocialAccessTokens(<token>, <provider>).then(function(response) {
  //token valid
}).catch(function(error) {
  //token not valid or error occured
  //handle error
});

API

validateSocialAccessTokens(token, provider)
token

Type: string

provider

Providers supported includes Facebook and Google, others are coming soon.

License

MIT Abimbola Idowu