# How to get Auth0 token through C++ application?

**URL:** <https://community.auth0.com/t/how-to-get-auth0-token-through-c-application/139384>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [July 21, 2024, 1:20pm UTC](https://community.auth0.com/t/how-to-get-auth0-token-through-c-application/139384 "2024-07-21T13:20:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sureshkumarpsgce](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sureshkumarpsgce/32/43949_2.png) [@sureshkumarpsgce](https://community.auth0.com/u/sureshkumarpsgce)\
**Post date:** [July 21, 2024, 1:20pm UTC](https://community.auth0.com/t/how-to-get-auth0-token-through-c-application/139384/1 "2024-07-21T13:20:22Z")

</div>

Hi ,

I am creating desktop application using C++ . This application will try to access our cloud app api’s with jwt token . Our cloud app integrated Auth0 based authentication . Through my C++ application , I have to launch browser or separate dialogue where user will see my cloud app login screen , after user entered their credentials , I should be able to get access token to my C++ code back .  
I tried with webview2 , but I guess it is not possible to access auth token with webview2. Is it possible or is there any other approach I can follow ?

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [July 22, 2024, 8:58pm UTC](https://community.auth0.com/t/how-to-get-auth0-token-through-c-application/139384/3 "2024-07-22T20:58:12Z")

</div>

Hi @sureshkumarpsgce,

Could you confirm if you are following the [Call Your API Using the Authorization Code Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow/call-your-api-using-the-authorization-code-flow) documentation?

You might find the [quickstart for native apps](https://auth0.com/docs/quickstarts#native) useful as well.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 7, 2025, 10:06pm UTC](https://community.auth0.com/t/how-to-get-auth0-token-through-c-application/139384/4 "2025-02-07T22:06:39Z")

</div>

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