0.0.2 • Published 6 years ago

react-vk-auth v0.0.2

Weekly downloads
19
License
MIT
Repository
github
Last release
6 years ago

react-vk-auth

A Component React for vk.com authentication

Getting Started

yarn add react-vk-auth or npm i react-vk-auth

Basic example

import React, { Component } from 'react';
import VkAuth from 'react-vk-auth';

class Registration extends Component {

  handleVkResponse = (data) => {
    console.warn(data)
  }
  
  render() {
    return(
      <VkAuth apiId="#######" callback={this.handleVkResponse} />
    )
  }
}

param apiId is required, appId is your vk.com dev token.