FormidableLabs / FormidableLabs/react-native-app-auth

The registration window opens and immediately closes.

Open
#783 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
473
PR merge metrics
No merged PRs in 30d

Description

The b2c auth window opens and immediately closes. I configured the identity server config for myself.

Using the example react-native-app-auth/Example.
Can you suggest what is wrong?

I used these commands to run the example
```
cd react-native-app-auth/Example
yarn
(cd ios && pod install)
npx react-native run-ios
```

Only 1 and 2 consoles work.

```
const handleAuthorize = useCallback(
async (provider) => {
console.log('1');
try {
const config = configs[provider];

console.log('2');

const newAuthState = await authorize({
...config,
connectionTimeoutSeconds: 5,
});

console.log('3');

setAuthState({
hasLoggedInOnce: true,
provider: provider,
...newAuthState,
});
} catch (error) {
console.log('4');
} finally {
console.log('5');
}

console.log('6');
},
[authState],
);
```

https://user-images.githubusercontent.com/84703702/199350346-42859a16-b344-4bad-b4b1-10645ea4db21.mov

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.