bn.authorize
▸ authorize(scope
): Promise
<{}>
description
Request user's authorization. Once called a dialog will be promoted to ask for access to user's data.
If users have granted the authorization before, the dialog will not be shown and return success immediately.
example
Parameters
Name | Type |
---|---|
scope | AuthOptions |
Returns
Promise
<{}>
#
AuthOptionsƬ AuthOptions: Object
Type declaration
Name | Type | Description |
---|---|---|
scope | string | The scope of authorization requested. e.g scope.userLocation |