FormidableLabs / FormidableLabs/react-native-app-auth
Does refresh() throw if it fails to refresh, or does the returned value need to be checked?
- Lingua principale
- Java
- Stelle
- 2.3k
- Fork
- 473
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
## Documentation Feedback
This is mostly a question, but I think the answer would be good to include in the documentation. Suppose the following:
- I call await refresh() inside a try catch block with a refresh token
- The user's account has been deactivated, so the refresh should fail
Will refresh() throw an error, or will the RefreshResult need to be checked to see if it failed?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dal punto di ingresso refresh() e dalla documentazione esistente sui refresh token. Determina se un refresh non riuscito genera un’eccezione o deve essere verificato tramite RefreshResult, quindi documenta questo comportamento e il caso di un account disattivato; l’issue non indica alcun file di documentazione né alcun test da eseguire.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- react-native
- Ambito
- authentication, mobile
- Tipo di issue
- Documentazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100