Title: WSL from Mobile
Last modified: September 24, 2020

---

# WSL from Mobile

 *  [maares](https://wordpress.org/support/users/maares/)
 * (@maares)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wsl-from-mobile/)
 * Hi everyone,
    First, most certenlly this is a naive question but after a few 
   days I’m not satisfied with MY current solution.
 * My background:
    I’m learning flutter and WP delivers a variety of cases which
   grants me the opportunity to start learning on the go. I never develop anything
   in wp (just the ocasional, a friend needs a webpage.. hey I will help you !)
 * Objetive
    Enable users from my flutter app to login using social login which 
   integrates with WordPress.
 * Why WSL?
    I, indeed, achieve the objective using Super Socializer, although I
   wanted to try a light weight solution and non invacive one (both important). 
   So wanted to try WSL as per your main site inspired honesty & hard work.
 * What did I achieve with WSL?
    Also achieved the objective with WSL.
 * Process:
    -Enable three buttons in my flutter app (Facebook, twitter, Google)-
   Linked each button to the corresponding provider call (example url:/wp-login.
   php?action=wordpress_social_authenticate&mode=login&provider=Google) and open
   them in a webView -Once user is logged in, extract user just created -Make an
   aditional call via JWT admin token to change user password just created (wordpress
   one) -To finish I generate a new user token using basic auth in order to make
   future requests via normal WP rest api.
 * This achieves the objective, having a light plugin such as WSL.
 * Why this post?
    I think from several angles, this is an atrocious solution, having
   to intercept in the middle, generating a new password on the background, generating
   a new token.
 * I read your wiki, but can not grasp which are the endpoints I need to call, or
   even what to do once I got WSL token, or how to refresh WSL token in order not
   to expire in the future.
 * Once again, apologise for this naive question, and would appriciate any help 
   to improve my solution.

The topic ‘WSL from Mobile’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-social-login_a1a2bc.svg)
 * [WordPress Social Login](https://wordpress.org/plugins/wordpress-social-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-social-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-social-login/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-social-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-social-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-social-login/reviews/)

## Tags

 * [auth](https://wordpress.org/support/topic-tag/auth/)
 * [Flutter](https://wordpress.org/support/topic-tag/flutter/)

 * 0 replies
 * 1 participant
 * Last reply from: [maares](https://wordpress.org/support/users/maares/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/wsl-from-mobile/)
 * Status: not resolved