# Google Auth for mobile game

**URL:** <https://forums.unrealengine.com/t/google-auth-for-mobile-game/1317595>\
**Category:** C++\
**Tags:** google, unreal-engine, Android, CPP, question\
**Created:** [September 30, 2023, 12:32pm UTC](https://forums.unrealengine.com/t/google-auth-for-mobile-game/1317595 "2023-09-30T12:32:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![grisha666](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/grisha666/32/928991_2.png) [@grisha666](https://forums.unrealengine.com/u/grisha666)\
**Post date:** [September 30, 2023, 12:32pm UTC](https://forums.unrealengine.com/t/google-auth-for-mobile-game/1317595/1 "2023-09-30T12:32:45Z")

</div>

Hello, I got backend with already working setup, and I wrote a frontend to get the code from google OAuth2 and my backend change this code to token that I use for auth. The question is how to make OAuth2 authentication for my Unreal ENgine mobile game?  
I mean for example I got can get this link:  
FString AuthURL = “[Sign in - Google Accounts](https://accounts.google.com/o/oauth2/auth)”;  
AuthURL += “?client\_id=” + ClientID;  
AuthURL += “&redirect\_uri=” + RedirectURI;  
AuthURL += “&response\_type=code”;

And then open it in browser for current platform:

FPlatformProcess::LaunchURL(\*AuthURL, nullptr, nullptr);

But for frontend I got my redirect\_uri and callback function to get “code” from google response, how can I get back to my Unreal ENgine game from external browser with response from google with “code” and how to handle callback function in Unreal Engine?

---

<div class="post-metadata">

**Author:** ![shive\_1807](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shive\_1807](https://forums.unrealengine.com/u/shive_1807)\
**Post date:** [April 3, 2024, 10:21am UTC](https://forums.unrealengine.com/t/google-auth-for-mobile-game/1317595/2 "2024-04-03T10:21:01Z")

</div>

> [@grisha666](#):
>
> from google response

Hey Did you find anything on this ?

---

<div class="post-metadata">

**Author:** ![Mantegro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mantegro](https://forums.unrealengine.com/u/Mantegro)\
**Post date:** [May 14, 2024, 8:38am UTC](https://forums.unrealengine.com/t/google-auth-for-mobile-game/1317595/3 "2024-05-14T08:38:57Z")

</div>

Would like to do the same with AWS Cognito. Did you find the way for the callback? or any kind of documentation?

---

<div class="post-metadata">

**Author:** ![Mantegro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mantegro](https://forums.unrealengine.com/u/Mantegro)\
**Post date:** [November 1, 2024, 10:13am UTC](https://forums.unrealengine.com/t/google-auth-for-mobile-game/1317595/4 "2024-11-01T10:13:59Z")

</div>

Any updates here?
