0.1.0 • Published 8 years ago

validate-social-access-tokens v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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