# Invalid API Key when login on Unity project

**URL:** <https://community.amazondeveloper.com/t/invalid-api-key-when-login-on-unity-project/8270>\
**Category:** Q&A\
**Tags:** appstore-lwa\
**Created:** [January 9, 2025, 11:26am UTC](https://community.amazondeveloper.com/t/invalid-api-key-when-login-on-unity-project/8270 "2025-01-09T11:26:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sy\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Sy\_Nguyen](https://community.amazondeveloper.com/u/Sy_Nguyen)\
**Post date:** [January 9, 2025, 11:26am UTC](https://community.amazondeveloper.com/t/invalid-api-key-when-login-on-unity-project/8270/1 "2025-01-09T11:26:17Z")

</div>

I implemented login Amazon to Unity project follow this sample

> **[GitHub - AmazonAppDev/login-with-amazon-unity-sample: A Unity game demo showcasing the integration of...](https://github.com/AmazonAppDev/login-with-amazon-unity-sample?tab=readme-ov-file)**
>
> A Unity game demo showcasing the integration of the Login with Amazon SDK for Android. This project provides a sample implementation and guides developers on how to incorporate Login with Amazon functionality into their Unity games, enabling secure user authentication and access to Amazon account information. 🔒🎮

After build apk build. I try open project, but can’t and happen error as below

```auto
Caused by: java.lang.IllegalArgumentException: Invalid API Key at
com.amazon.identity.auth.device.authorization.InternalAuthManager.<init>(InternalAuthManager.java:59) at
com.amazon.identity.auth.device.authorization.InternalAuthManager.getInstance(Internal AuthManager.jav a:48) at
com.amazon.identity.auth.device.api.authorization.AuthorizationManager.getToken (Authorization Manage r.java:275) at
com.unity3d.player.UnityPlayerProxyActivity.onStart( UnityPlayerProxyActivity.java:138) at
android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1596) at
android.app.Activity.performStart(Activity.java:8923) at
android.app.ActivityThread.handleStartActivity(Activit yThread.java:4039)

```

---

<div class="post-metadata">

**Author:** ![Sy\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Sy\_Nguyen](https://community.amazondeveloper.com/u/Sy_Nguyen)\
**Post date:** [January 10, 2025, 9:35am UTC](https://community.amazondeveloper.com/t/invalid-api-key-when-login-on-unity-project/8270/2 "2025-01-10T09:35:28Z")

</div>

I found reason =\> Due I entered MD5 error

---

<div class="post-metadata">

**Author:** ![system](https://dhm3gbtzu79o6.cloudfront.net/user_avatar/community.amazondeveloper.com/system/32/5065_2.png) [@system](https://community.amazondeveloper.com/u/system)\
**Post date:** [January 24, 2025, 9:36am UTC](https://community.amazondeveloper.com/t/invalid-api-key-when-login-on-unity-project/8270/3 "2025-01-24T09:36:10Z")

</div>

Closed on January 24, 2025, 9:36am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
