capacitor-plugin-vk-auth

VK Authentication with capacitor

Usage no npm install needed!

<script type="module">
  import capacitorPluginVkAuth from 'https://cdn.skypack.dev/capacitor-plugin-vk-auth';
</script>

README

Capacitor Plugin VK Auth

Install

Use Yarn

yarn add capacitor-plugin-vk-auth

Use NPM

npm install capacitor-plugin-vk-auth --save

Using

VKAuth.initWithId({ id: '7569443' })
VKAuth.auth({ scope: ['offline'] });
VKAuth.addListener("vkAuthFinished", (info) => {
    console.log("vkAuthFinished was fired", JSON.stringify(info, null, 2));
});

Setup VK APP

Setup App in vk.com/dev

Example both for Android & IOS

P.S. Setup for ios is unnecessary

Android

Click to open useful docs for android

Add plugin registration line

Add VK APP ID to app/res/values/strings.xml

IOS

Insert vkID into your Info.plist file like this

Click to open useful docs for ios

Only for IOS 9

Click to open settings for IOS 9

Support

For any support create an issue and describe your problem, we can help you with our plugin ;)