# How do you get GooglePlay AuthToken?

**URL:** <https://forums.unrealengine.com/t/how-do-you-get-googleplay-authtoken/462064>\
**Category:** Mobile\
**Tags:** Google-Play, unreal-engine, Android, question\
**Created:** [March 3, 2020, 10:57pm UTC](https://forums.unrealengine.com/t/how-do-you-get-googleplay-authtoken/462064 "2020-03-03T22:57:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tuumn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tuumn](https://forums.unrealengine.com/u/Tuumn)\
**Post date:** [March 3, 2020, 10:57pm UTC](https://forums.unrealengine.com/t/how-do-you-get-googleplay-authtoken/462064/1 "2020-03-03T22:57:23Z")

</div>

I am trying to get the auth token from GooglePlay

I can successfully log in into GooglePlay with my account, but when I go to get the auth token using:

`IOnlineIdentity* Identity = OnlineSubsystem->GetIdentityInterface().Get();`

`Identity ->GetAuthToken(0);`

It always returns “NOT\_ACQUIRED”.

I have given android `android.permission.GET_ACCOUNTS` permission as well as enabled `"Request Auth Token On Connect"` in the android section of the project settings.

Is there something else I am missing?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_db3d09bb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_db3d09bb](https://forums.unrealengine.com/u/anonymous_user_db3d09bb)\
**Post date:** [January 18, 2021, 12:26am UTC](https://forums.unrealengine.com/t/how-do-you-get-googleplay-authtoken/462064/2 "2021-01-18T00:26:49Z")

</div>

hi have you found the answer regarding this issue?  
i have same problem

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a2d7a4ef](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a2d7a4ef](https://forums.unrealengine.com/u/anonymous_user_a2d7a4ef)\
**Post date:** [February 15, 2022, 8:21am UTC](https://forums.unrealengine.com/t/how-do-you-get-googleplay-authtoken/462064/3 "2022-02-15T08:21:07Z")

</div>

it was deprecated, you can check [https://github.com/EpicGames/UnrealEngine/blob/d94b38ae3446da52224bedd2568c078f828b4039/Engine/Build/Android/Java/src/com/epicgames/ue4/GameActivity.java.template#L4439](https://github.com/EpicGames/UnrealEngine/blob/d94b38ae3446da52224bedd2568c078f828b4039/Engine/Build/Android/Java/src/com/epicgames/ue4/GameActivity.java.template#L4439)

I also hit the same issue

---

<div class="post-metadata">

**Author:** ![Pigeon-G](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pigeon-G](https://forums.unrealengine.com/u/Pigeon-G)\
**Post date:** [August 2, 2022, 9:11pm UTC](https://forums.unrealengine.com/t/how-do-you-get-googleplay-authtoken/462064/4 "2022-08-02T21:11:19Z")

</div>

> [@Tuumn](#):
>
> have given android `android.permission.GET_ACCOUNTS` permission

Where to put android.permission.GET\_ACCOUNTS
