Skip to content

Commit 45b98e7

Browse files
committed
debug auth args
1 parent 256adff commit 45b98e7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/authenticate.android.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,15 @@ const authLegacy = (onAttempt) => {
3838

3939
const nullOnAttempt = () => null;
4040

41-
export default ({ description="Log In", onAttempt=nullOnAttempt }) => {
41+
export default ({ description, onAttempt }) => {
4242
return new Promise((resolve, reject) => {
43+
if (!description) {
44+
description = "Log In";
45+
}
46+
if (!onAttempt) {
47+
onAttempt = nullOnAttempt;
48+
}
49+
4350
if (Platform.VERSION < 23) {
4451
return authLegacy(onAttempt);
4552
}

0 commit comments

Comments
 (0)