A
A
alzow2019-01-21 14:03:28
Django
alzow, 2019-01-21 14:03:28

How to implement login through VK in the web version and mobile application using the same AppID?

I am developing a mobile application for my small project, and it implies authentication through Facebook and VK. I use react-native (expo) for mobile applications, on the django backend, python-social-auth and django-rest-framework.
For Facebook, I use the following approach: I authorize natively through Expo Facebook , getting an access_token, send it to my endpoint on the backend, check if there is such a user, if not, I create it. The bottom line is that for Facebook one AppID can be used for all platforms, for VK you need to create separate applications in VK Dev . Accordingly, it will not work to check the access_token in my endpoint using the AppID for the web version.
How true is this approach in general and what are the alternatives and best practices?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alzow, 2019-02-07
@alzow

I will answer my own question: I use WebView to get a token, but of course I refused to be "native".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question