FormidableLabs / FormidableLabs/react-native-app-auth

The registration window opens and immediately closes.

Offen
#783 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
2.3k
Forks
473
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.