# Flutter SDK and "Call Your API Using the Authorization Code Flow with PKCE"

**URL:** <https://community.auth0.com/t/flutter-sdk-and-call-your-api-using-the-authorization-code-flow-with-pkce/95127>\
**Category:** Get Help\
**Tags:** apis, application\
**Created:** [November 25, 2022, 12:15pm UTC](https://community.auth0.com/t/flutter-sdk-and-call-your-api-using-the-authorization-code-flow-with-pkce/95127 "2022-11-25T12:15:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghenry](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ghenry/32/41419_2.png) [@ghenry](https://community.auth0.com/u/ghenry)\
**Post date:** [November 25, 2022, 12:15pm UTC](https://community.auth0.com/t/flutter-sdk-and-call-your-api-using-the-authorization-code-flow-with-pkce/95127/1 "2022-11-25T12:15:29Z")

</div>

Hi all,

I’m successfully testing out the sample app and wondered if I could use this sdk to do the normal [AppAuth PCKE](https://auth0.com/docs/get-started/authentication-and-authorization-flow/call-your-api-using-the-authorization-code-flow-with-pkce) ([Authorization Code Grant - OAuth 2.0 Simplified](https://www.oauth.com/oauth2-servers/server-side-apps/authorization-code/)) type flows so I can authn/authz the app/user to retrieve my access token etc?

I’d like to login the user, but take an access token/request token for use against our own API that uses Auth0 to do token introspection.

Is this possible with this Flutter SDK or another?

Traditionally I use [flutter\_appauth](https://pub.dev/packages/flutter_appauth) and [Hydra](https://github.com/ory/hydra)

I’ve asked here too with no response - [Auth0-flutter SDK First Availability! - #2 by ghenry](https://community.auth0.com/t/auth0-flutter-sdk-first-availability/87739/2) (and [Access Token · Issue #185 · auth0/auth0-flutter · GitHub](https://github.com/auth0/auth0-flutter/issues/185))

Thanks.

---

<div class="post-metadata">

**Author:** ![alex.brett](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alex.brett/32/60157_2.png) [@alex.brett](https://community.auth0.com/u/alex.brett)\
**Post date:** [December 11, 2024, 9:56pm UTC](https://community.auth0.com/t/flutter-sdk-and-call-your-api-using-the-authorization-code-flow-with-pkce/95127/2 "2024-12-11T21:56:33Z")

</div>

Hello @ghenry!

I understand that you’d like to use a custom API for access tokens and request tokens. I was looking through the Flutter SDK GitHub and found an example that may fit your needs.

> <https://github.com/auth0/auth0-flutter/blob/main/auth0_flutter/EXAMPLES.md#custom-implementations>

This supports using a Custom Credentials Manager and gives an example on how to do that.

If you just need the regular Access Token here are some docs on [receiving the access token](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow-with-pkce/call-your-api-using-the-authorization-code-flow-with-pkce#-response).

I apologize if I am misunderstanding something, I hope this can help!

Best,  
Alex

---

<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:** [April 2, 2025, 4:33pm UTC](https://community.auth0.com/t/flutter-sdk-and-call-your-api-using-the-authorization-code-flow-with-pkce/95127/3 "2025-04-02T16:33:51Z")

</div>

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