validate-social-access-tokens

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

Usage no npm install needed!

<script type="module">
  import validateSocialAccessTokens from 'https://cdn.skypack.dev/validate-social-access-tokens';
</script>

README

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