# React Native Login With Email and Password Fails

**URL:** <https://community.auth0.com/t/react-native-login-with-email-and-password-fails/102965>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [March 21, 2023, 12:10am UTC](https://community.auth0.com/t/react-native-login-with-email-and-password-fails/102965 "2023-03-21T00:10:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![noelzappy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/noelzappy/32/45628_2.png) [@noelzappy](https://community.auth0.com/u/noelzappy)\
**Post date:** [March 21, 2023, 12:10am UTC](https://community.auth0.com/t/react-native-login-with-email-and-password-fails/102965/1 "2023-03-21T00:10:55Z")

</div>

I’m trying to authenticate users using the react-native SDK, however, I always get this error message saying no credentials were found in the store whenever I try to get credentials after calling the authorize method.

`[a0.credential_manager.invalid: No credentials were found in the store.]`

Please what does it mean and what can I do to fix it?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 21, 2023, 11:04am UTC](https://community.auth0.com/t/react-native-login-with-email-and-password-fails/102965/2 "2023-03-21T11:04:01Z")

</div>

Hey there!

It seems like the most effective way to handle that would be to raise a GitHub issue in the SDK repo so we can discuss it directly with the repo maintainers.

> **[GitHub - auth0/react-native-auth0: React Native toolkit for Auth0 API](https://github.com/auth0/react-native-auth0)**
>
> React Native toolkit for Auth0 API. Contribute to auth0/react-native-auth0 development by creating an account on GitHub.

Once you have a link to it make sure to share it here so we can ping them. Thank you!

---

<div class="post-metadata">

**Author:** ![noelzappy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/noelzappy/32/45628_2.png) [@noelzappy](https://community.auth0.com/u/noelzappy)\
**Post date:** [March 22, 2023, 9:57am UTC](https://community.auth0.com/t/react-native-login-with-email-and-password-fails/102965/3 "2023-03-22T09:57:05Z")

</div>

Hi there,

> <https://github.com/auth0/react-native-auth0/issues/604>
>
> \### Describe the problem
> 
> I have followed the instructions described in \[HERE\]…(https://auth0.com/docs/quickstart/native/react-native/00-login#integrate-auth0-in-your-application).
> 
> This is my \`android/app/build.gradle\`
> \`\`\`
> ....
> 
> defaultConfig {
> applicationId "com.someapp.app"
> minSdkVersion rootProject.ext.minSdkVersion
> targetSdkVersion rootProject.ext.targetSdkVersion
> versionCode 1
> versionName "1.0"
> manifestPlaceholders = \[auth0Domain: "someapp.us.auth0.com", auth0Scheme: ${applicationId}"\]
> }
> .....
> \`\`\`
> 
> This is how my \`AppDelegate.mm\` looks like
> 
> \<img width="736" alt="Screen Shot 2023-03-20 at 19 06 23" src="https://user-images.githubusercontent.com/38583057/226441077-6e584539-5111-4eb8-b8da-6ba57321bc38.png"\>
> 
> 
> When trying to log in a user, the in-app browser opens and the authentication process is completed on the first time but on fails when trying again. The browser window opens and clickly closes without allowing the user to enter their credentials and this error message \`\[a0.credential\_manager.invalid: No credentials were found in the store.\]\` is returned. 
> 
> 
> 
> \### What was the expected behavior?
> 
> The user is able to login and I can then retrieve the \`user\` object and also the token using the \`getCredentials()\` method from the \`useAuth0\` hook.
> 
> \### Reproduction
> 
> \`App.tsx\`
> \`\`\`Typescript
> 
> import { Auth0Provider } from 'react-native-auth0';
> import { Config } from './config';
> 
> const App = () =\> {
> 
> return (
> \<Auth0Provider
> domain={Config.AUTH0\_DOMAIN}
> clientId={Config.AUTH0\_CLIENT\_ID}
> \>
> \<RestOfApp/\>
> \</Auth0Provider\>
> );
> };
> 
> export default App;
> \`\`\`
> 
> \`Login.tsx\`
> \`\`\`Typescript
> 
> import { useAuth0 } from 'react-native-auth0';
> 
> 
> const Login = () =\> {
> 
> const { authorize, user, getCredentials, error } =
> useAuth0();
> 
> const onLogin = async () =\> {
> try {
> await authorize();
> const creds = await getCredentials();
> 
> console.log(error, creds);
> } catch (error) {
> console.log(error);
> } 
> };
> 
> return (
>   
> \<View\>
>     
> \<Button
> onPress={() =\> {
> onLogin();
> }}
> title="Login"
> /\>
>     
> \</View\>
>  
> );
> };
> 
> export default Login;
> \`\`\`
> 
> 
> \`android/app/build.gradle\`
> \`\`\`
> ....
> 
> defaultConfig {
> applicationId "com.someapp.app"
> minSdkVersion rootProject.ext.minSdkVersion
> targetSdkVersion rootProject.ext.targetSdkVersion
> versionCode 1
> versionName "1.0"
> manifestPlaceholders = \[auth0Domain: "someapp.us.auth0.com", auth0Scheme: ${applicationId}"\]
> }
> .....
> \`\`\`
> 
> \`ios/AppName/AppDelegate.mm\`
> 
> \<img width="736" alt="Screen Shot 2023-03-20 at 19 06 23" src="https://user-images.githubusercontent.com/38583057/226441077-6e584539-5111-4eb8-b8da-6ba57321bc38.png"\>
> 
> 
> Just build and run the app and try to log in.
> 
> \### Environment
> 
> \- \*\*Version of this library used: 2.17.1
> \- \*\*Which framework are you using, if applicable: React Native (0.71.3)

Here is the link to the issue I created.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 22, 2023, 11:26am UTC](https://community.auth0.com/t/react-native-login-with-email-and-password-fails/102965/4 "2023-03-22T11:26:32Z")

</div>

Perfect! I’ll ping the repo maintainers in a few minutes!

---

<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 5, 2023, 11:26am UTC](https://community.auth0.com/t/react-native-login-with-email-and-password-fails/102965/5 "2023-04-05T11:26:37Z")

</div>

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