# Implementing OAuth within my game itself

**URL:** <https://www.patreondevelopers.com/t/implementing-oauth-within-my-game-itself/3119>\
**Category:** Uncategorized\
**Created:** [May 7, 2020, 2:35am UTC](https://www.patreondevelopers.com/t/implementing-oauth-within-my-game-itself/3119 "2020-05-07T02:35:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Imadeletethisacc](https://avatars.discourse-cdn.com/v4/letter/i/b487fb/32.png) [@Imadeletethisacc](https://www.patreondevelopers.com/u/Imadeletethisacc)\
**Post date:** [May 7, 2020, 2:35am UTC](https://www.patreondevelopers.com/t/implementing-oauth-within-my-game-itself/3119/1 "2020-05-07T02:35:05Z")

</div>

So currently, my goal is to implement a check to make sure someone is pledged from within my game. Reason being (obviously), people pledge to me, download my game, then refund. I read up on OAuth, but my only problem is I wouldn’t know how to implement that from within an exe file (godot game engine). Because from what I read, it was originally made to be used with a website, but how would I do the same thing, but from within my game? (also I have no experience with this sort of thing, all my experience is in basic game design)

---

<div class="post-metadata">

**Author:** ![codebard](https://yyz2.discourse-cdn.com/flex036/user_avatar/www.patreondevelopers.com/codebard/32/14_2.png) [@codebard](https://www.patreondevelopers.com/u/codebard)\
**Post date:** [May 7, 2020, 2:01pm UTC](https://www.patreondevelopers.com/t/implementing-oauth-within-my-game-itself/3119/2 "2020-05-07T14:01:49Z")

</div>

For that particular game engine you would need to consult with their support or community, but if it works with a website, then you can implement a normal web oAuth login at an ‘account’ website you put up for your game, have your users login via there, and then check their login validity from within your game by connecting to internet.

There are other topics which revolve around the same concept - you can get some logic examples from them:

> [@Concealing API key for offline apps?](https://www.patreondevelopers.com/t/concealing-api-key-for-offline-apps/3062/5):
>
> Hi all, slight_smile I have a web browser extension called [Sprucemarks](https://nightmode.fm/software/sprucemarks) which even though it lives in a web browser, has many of the same concerns as an offline app. Concerns like… Users must be online at least once to login to Patreon. Once logged in, how long do you let the software stay unlocked before checking in again? Including anything secret in the distributable is NOT an option since web browser extensions are basically unprotected. Distributing sensitive keys is obviously not an o…

---

<div class="post-metadata">

**Author:** ![Imadeletethisacc](https://avatars.discourse-cdn.com/v4/letter/i/b487fb/32.png) [@Imadeletethisacc](https://www.patreondevelopers.com/u/Imadeletethisacc)\
**Post date:** [May 7, 2020, 7:36pm UTC](https://www.patreondevelopers.com/t/implementing-oauth-within-my-game-itself/3119/3 "2020-05-07T19:36:14Z")

</div>

Gotcha, I’ll look in to that. Thanks for the help!
