Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bazumax/capacitor-plugin-vk-auth
Capacitor plugin to authenticate user and get VK token
https://github.com/bazumax/capacitor-plugin-vk-auth
android auth authentication capacitor ios vk
Last synced: 2 months ago
JSON representation
Capacitor plugin to authenticate user and get VK token
- Host: GitHub
- URL: https://github.com/bazumax/capacitor-plugin-vk-auth
- Owner: BazuMax
- License: mit
- Created: 2020-08-09T10:33:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-12T19:51:17.000Z (about 2 years ago)
- Last Synced: 2024-10-01T10:02:40.880Z (3 months ago)
- Topics: android, auth, authentication, capacitor, ios, vk
- Language: Swift
- Homepage:
- Size: 862 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Capacitor Plugin VK Auth
## Install
Use Yarn
```
yarn add capacitor-plugin-vk-auth
```
Use NPM
```
npm install capacitor-plugin-vk-auth --save
```## Using
```javascript
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](https://vk.com/dev)
Create Standalone-application
Example both for Android & IOS
P.S. Setup for ios is unnecessary
## Android
[Click to open useful docs for android](https://vk.com/dev/android_sdk?f=1.%20%D0%9F%D0%BE%D0%B4%D0%B3%D0%BE%D1%82%D0%BE%D0%B2%D0%BA%D0%B0%20%D0%BA%20%D0%B8%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D1%8E)
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](https://vk.com/dev/ios_sdk?f=1.%20%D0%9F%D0%BE%D0%B4%D0%B3%D0%BE%D1%82%D0%BE%D0%B2%D0%BA%D0%B0%20%D0%BA%20%D0%B8%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D1%8E)
### Only for IOS 9
[Click to open settings for IOS 9](https://vk.com/dev/ios_sdk?f=1.2.%20%D0%98%D0%B7%D0%BC%D0%B5%D0%BD%D0%B5%D0%BD%D0%B8%D1%8F%20%D0%B4%D0%BB%D1%8F%20iOS%209)## Support
For any support create an issue and describe your problem, we can help you with our plugin ;)