Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting access token #2

Open
ghost opened this issue Mar 13, 2019 · 3 comments
Open

Getting access token #2

ghost opened this issue Mar 13, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 13, 2019

Can i get access_token?

@canmeepo
Copy link
Owner

You can get it here https://vk.com/dev

follow next steps:

  • go to my apps
  • create new application
  • go to settings
  • change Application status to "visible to all"
  • make Open API - Enabled
  • add Website address and base domain
  • copy application id
  • pass to apiId="#######"

@ghost
Copy link
Author

ghost commented Mar 14, 2019

@canmeepo Thank you for your response but i have already did it.

For example, my code:

this.vkAuthCallback = (res) => {
     console.log(res) //see screenshot
}

...

<VkAuth
     apiId={1234567}
     callback={this.vkAuthCallback}
>
     VK Login
</VkAuth>

screen

Here you can see, that access_token field is missing. Is there are way to get it?

@canmeepo
Copy link
Owner

canmeepo commented Mar 14, 2019

@dentsmokaliuk oh sry misunderstood.
Yep token is missing, so i think no way to get "access_token" through OPEN_API
that's why i just generate hash

md5(SECRET_KEY + data.session.mid)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant