diff --git a/app/src/main/java/org/fedorahosted/freeotp/Token.java b/app/src/main/java/org/fedorahosted/freeotp/Token.java index e6c8ac0a..25f450d3 100644 --- a/app/src/main/java/org/fedorahosted/freeotp/Token.java +++ b/app/src/main/java/org/fedorahosted/freeotp/Token.java @@ -89,8 +89,12 @@ private Token(Uri uri, boolean internal) throws TokenUriInvalidException { try { String d = uri.getQueryParameter("digits"); - if (d == null) - d = "6"; + if (d == null) { + if (issuerExt.equals("Steam")) + d = "5"; + else + d = "6"; + } digits = Integer.parseInt(d); if (!issuerExt.equals("Steam") && digits != 6 && digits != 8) throw new TokenUriInvalidException();