You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Note:** The package URL `https://maven.pkg.github.com/IDme/android-auth-sample-code` returns a 404 when accessed in a browser without authentication. This is expected — GitHub uses 404 (rather than 401) to protect package visibility. The URL works correctly when Gradle makes authenticated requests using your token.
59
+
31
60
## Quick Start
32
61
33
62
### 1. Configure the SDK
@@ -161,11 +190,13 @@ idme.logout()
161
190
162
191
### Auth Modes
163
192
193
+
For mobile app integrations, use `OAUTH_PKCE`. This is the only mode that returns the full attributes payload including `status` and subgroup data (e.g. military verification status). Do not use `OIDC` mode — it routes through the OpenID Connect userinfo endpoint which returns only standard claims (`email`, `fname`, `lname`, `uuid`, etc.) and does not include `status` or subgroup data.
194
+
164
195
| Mode | Description |
165
196
|---|---|
166
-
|`OAUTH_PKCE`|**Recommended.** OAuth 2.0 Authorization Code with PKCE. No client secret sent to authorize endpoint. |
167
-
|`OAUTH`| Standard OAuth 2.0 Authorization Code. Requires `clientSecret`. |
168
-
|`OIDC`| OpenID Connect. Returns an ID token with JWT signature validation against ID.me's JWKS. |
197
+
|`OAUTH_PKCE`|**Required for mobile apps.** OAuth 2.0 Authorization Code with PKCE. No client secret needed. Returns full attributes and `status` payload. |
198
+
|`OAUTH`| Standard OAuth 2.0 Authorization Code. Requires `clientSecret`. Server-side flows only. Not for mobile apps. |
199
+
|`OIDC`| OpenID Connect. Does **not** return `status` or subgroup data. Not recommended for this integration. |
0 commit comments