# OAuth 2 Example App

**URL:** <https://community.thunkable.com/t/oauth-2-example-app/3130226>\
**Category:** Web API's\
**Created:** [August 7, 2024, 9:52am UTC](https://community.thunkable.com/t/oauth-2-example-app/3130226 "2024-08-07T09:52:03Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![martin.carl.zimmerl8](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@martin.carl.zimmerl8](https://community.thunkable.com/u/martin.carl.zimmerl8)\
**Post date:** [August 8, 2024, 11:08am UTC](https://community.thunkable.com/t/oauth-2-example-app/3130226/3 "2024-08-08T11:08:34Z")

</div>

Thank you very much for the quick reply, but I am a little surprised.  
We do not use our own web API but a publicly available one:

> **[Dexcom API](https://developer.dexcom.com/docs/dexcom/authentication/)**
>
> Developer related documentation for the Dexcom API

More and more web APIs seem to be using this authentication method.  
I found the following forum post, which apparently suggests a not easy but feasible solution in Thunkable.

> [@Minor success! (A Webviewer and Web API and OAuth2 story)](https://community.thunkable.com/t/minor-success-a-webviewer-and-web-api-and-oauth2-story/1201232):
>
> I did it. It took too many hours of fighting, thanks to bad and conflicting documentation (mostly on the API side) and a good measure of clueless newbieness, but I did it. I’ve got an app working that runs through the entire OAuth2 process for my local grocery store’s API. It gets an authorization code using the Webviewer (with a redirect to a page with some javascript that sends back the authorization code as a Webviewer message, using this thing: [GitHub - thunkable/webviewer-extension: Comm…](https://github.com/thunkable/webviewer-extension/)

Unfortunately, the app link is not available. For us, a more complex solution would also be welcome…

---

_[View the full topic](https://community.thunkable.com/t/oauth-2-example-app/3130226)._
