# Flutter-auth0.api.login-issue

**URL:** <https://community.auth0.com/t/flutter-auth0-api-login-issue/115735>\
**Category:** Get Help\
**Tags:** signup-prompt-new-experience, login-experience\
**Created:** [September 8, 2023, 7:16am UTC](https://community.auth0.com/t/flutter-auth0-api-login-issue/115735 "2023-09-08T07:16:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ctwdtw](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ctwdtw/32/50849_2.png) [@ctwdtw](https://community.auth0.com/u/ctwdtw)\
**Post date:** [September 14, 2023, 3:53am UTC](https://community.auth0.com/t/flutter-auth0-api-login-issue/115735/2 "2023-09-14T03:53:41Z")

</div>

I faced the same issue, and made the error gone by the following:

1. open `LoginApiRequestHandler.kt` under the folder `../auth0_flutter/android/src/main/kotlin/com/auth0/auth0_flutter/request_handlers/api/`
2. add this line: `loginBuilder.validateClaims()`:

```auto
...
...
if (args["parameters"] is HashMap<*, *>) {
    loginBuilder.addParameters(args["parameters"] as Map<String, String>)
}

loginBuilder.validateClaims()
...
...

```

See this thread for more info:

> [@Problem with flutter and auth0 api](https://community.auth0.com/t/problem-with-flutter-and-auth0-api/87747/3):
>
> Hey there @arenasduranj welcome to the community! Interesting! I did some digging on my end and did come across the validateClaims() method which is indeed required: Shameless plug for our new Flutter SDK (first availability) smile

---

_[View the full topic](https://community.auth0.com/t/flutter-auth0-api-login-issue/115735)._
