FormidableLabs / FormidableLabs/react-native-app-auth
The app crashes if iosCustomBrowser is not provided, react-native 0.77.1
- Lingua principale
- Java
- Stelle
- 2.3k
- Fork
- 473
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
## Issue
The release configuration of the app crashes on iOS if **authorize** method is called _without_ **iosCustomBrowser** option. It reproduces only with react-native v0.77.1.
```
- (id)getCustomBrowser: (NSString *) browserType {
typedef id (^BrowserBlock)(void);
NSDictionary *browsers = @{
@"safari":
^{
return [OIDExternalUserAgentIOSCustomBrowser CustomBrowserSafari];
},
@"chrome":
^{
return [OIDExternalUserAgentIOSCustomBrowser CustomBrowserChrome];
},
@"opera":
^{
return [OIDExternalUserAgentIOSCustomBrowser CustomBrowserOpera];
},
@"firefox":
^{
return [OIDExternalUserAgentIOSCustomBrowser CustomBrowserFirefox];
}
};
BrowserBlock browser = browsers[browserType];
return browser(); <-- Thread 1: EXC_BAD_ACCESS (code=1, address=0x10)
}
```
---
## Environment
* **Your Identity Provider**: IdentityServer 4
* **Platform that you're experiencing the issue on**: iOS (only release configuration)
* **Your `react-native` Version**: 0.77.1
* **Your `react-native-app-auth` Version**: 8.0.0
* **Are you using Expo?**: 52.0.35
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con il metodo Objective-C getCustomBrowser mostrato nell’issue e traccia il comportamento di authorize quando iosCustomBrowser è assente. Riproduci il crash di iOS che si verifica solo nella release con React Native 0.77.1 e react-native-app-auth 8.0.0; il lavoro è completato quando l’autorizzazione non causa più un crash se tale opzione viene omessa.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- ios, objective-c, react-native
- Ambito
- authentication, mobile
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100