vk.login()


Type Function

Return value none

See also vk.*


Overview

User authentication. Uses official VK application if available.

Syntax

vk.login(params)

params required

Table. Contains parameters for the call — see the next section for details.

Parameter Reference

The params table includes parameters for the call.

userInitiated optional

Boolean. If not specified or false the user won’t be promted with a login window. Use it to silently authorize the user at the start of your application if he or she has logged in before. Specify true if you want the regular login flow, e.g. via a “Log in” button.

inApp optional ~(iOS)~

Boolean. The plugin uses official VK app if available for authentication. Otherwise, if true on iOS a WebView will be used, if false or not specified - full Safari browser.

listener optional

Listener. Listener which receives the login event.