# Automatic Login from iOS/Android app

**URL:** https://meta.discourse.org/t/automatic-login-from-ios-android-app/48620
**Category:** Support
**Created:** [August 14, 2016, 5:33pm 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:** 2

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [August 15, 2016, 12:13am UTC](https://meta.discourse.org/t/automatic-login-from-ios-android-app/48620/2 "2016-08-15T00:13:57Z")

</div>

This is super timely 🙂

See:

> [@User API keys specification](https://meta.discourse.org/t/user-api-keys-specification/48536):
>
> Discourse contains a system for generating API keys per user if a very specific protocol is followed. This feature facilitates “application” access to Discourse instances without needing to involve moderators. High level description At a high level: Client (desktop app, browser plugin, mobile app) generates a private/public key pair and return url Client redirects to a route on discourse giving discourse its public key Discourse gets approval from user to use app Discourse generat…

Working on it this week.

Basically after we generate an API key we redirect to a universal link that your app can open.

**Definately** do not ship API keys in the app, you are 1 jailbreak away from hackers doing whatever they want to your website.

---

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