# Connect Native Flutter App to Custom API

**URL:** <https://community.auth0.com/t/connect-native-flutter-app-to-custom-api/90396>\
**Category:** Get Help\
**Created:** [September 11, 2022, 8:36pm UTC](https://community.auth0.com/t/connect-native-flutter-app-to-custom-api/90396 "2022-09-11T20:36:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jose.runin](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jose.runin/32/34928_2.png) [@jose.runin](https://community.auth0.com/u/jose.runin)\
**Post date:** [September 11, 2022, 8:36pm UTC](https://community.auth0.com/t/connect-native-flutter-app-to-custom-api/90396/1 "2022-09-11T20:36:51Z")

</div>

Hello everyone,

I’m having trouble reaching my express API with the access token generated by the Auth0 SDK for flutter. I did the tutorials for both, API based on express and Native aplication based on flutter, and both are running fine separately, I just haven’t found the way to connect them.

On flutter I get an 401 error, which shows this on express:  
UnauthorizedError: invalid signature  
code: ‘invalid\_token’,  
status: 401,

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 1, 2022, 12:31am UTC](https://community.auth0.com/t/connect-native-flutter-app-to-custom-api/90396/3 "2022-10-01T00:31:08Z")

</div>

Hi @jose.runin,

Welcome to the Auth0 Community!

First thing I would do is take copy of the token and inspect it with [JWT.io](http://JWT.io). You can post an example here and I can take a look at it too. This error code suggests something is wrong with your token, malformed or otherwise.

---

<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:** [October 27, 2022, 11:39pm UTC](https://community.auth0.com/t/connect-native-flutter-app-to-custom-api/90396/4 "2022-10-27T23:39:46Z")

</div>

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