Android - How to login through my website (using social network) and receive jwt token?

72 views Asked by At

I have laravel website with bunch of social logins, and want to use my website for social auth.

I want this to happen: when my app user click on social login button - my website social login url is started and after he successfully login it redirects to the app and he is logged in in my app.

I found lot of apps are doing so but I don't know how.

Edit: Simple login I've implemented using jwt. For network requests I use retrofit.

1

There are 1 answers

3
Harjan On

Because you mentioned you use a JWT token, do you have some form of a REST-API implemented?
If the answer to that question is yes, than maybe take a look at Retrofit, especially this page (after taking the rest of the tutotial.)