FormidableLabs / FormidableLabs/react-native-app-auth

The registration window opens and immediately closes.

Aperta
#783 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
2.3k
Fork
473
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.