                         secret: token.core.secret,
                         algorithm: token.core.algorithm,
                         digits: token.core.digits
-                    )
+                    )!
                 )
             default: break
             }

                    secret: token.core.secret,
                    algorithm: newAlgorithm,
                    digits: token.core.digits
                )
            )
        }
    }

                        secret: token.core.secret,
                        algorithm: token.core.algorithm,
                        digits: token.core.digits
                    )!
                )
            default: break
            }
