We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 256adff commit 45b98e7Copy full SHA for 45b98e7
src/authenticate.android.js
@@ -38,8 +38,15 @@ const authLegacy = (onAttempt) => {
38
39
const nullOnAttempt = () => null;
40
41
-export default ({ description="Log In", onAttempt=nullOnAttempt }) => {
+export default ({ description, onAttempt }) => {
42
return new Promise((resolve, reject) => {
43
+ if (!description) {
44
+ description = "Log In";
45
+ }
46
+ if (!onAttempt) {
47
+ onAttempt = nullOnAttempt;
48
49
+
50
if (Platform.VERSION < 23) {
51
return authLegacy(onAttempt);
52
}
0 commit comments