# Automatic Login from iOS/Android app

**URL:** <https://meta.discourse.org/t/automatic-login-from-ios-android-app/48620>\
**Category:** Product Support\
**Created:** [14 augustus 2016 om 17:33 UTC](https://meta.discourse.org/t/automatic-login-from-ios-android-app/48620 "2016-08-14T17:33:17Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Ugo\_Chirico](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ugo_chirico/32/55558_2.png) [@Ugo\_Chirico](https://meta.discourse.org/u/Ugo_Chirico)\
**Post date:** [14 augustus 2016 om 17:33 UTC](https://meta.discourse.org/t/automatic-login-from-ios-android-app/48620/1 "2016-08-14T17:33:17Z")

</div>

Hi,  
I’m writing an android/iOS app that points to my discourse instance.  
This is the scenario:

1. When the mobile app starts for the first time I create a user on my discourse instance by calling the API by setting active=true. the user should be already active (without needing to activate again it by email)
2. I store username and password in the mobile app after successfull creation.
3. When the app starts I want to automatically login the user to discourse and show him the home page with the login done.

Is there a way to do that?  
How can I do that?

---

_[View the full topic](https://meta.discourse.org/t/automatic-login-from-ios-android-app/48620)._
