function decodeProtobuf(payload) {
  const protobuf = require("protobufjs");

  const root = protobuf.loadSync("./src/google_auth.proto");

  const MigrationPayload = root.lookupType("googleauth.MigrationPayload");

  const message = MigrationPayload.decode(payload);

  return MigrationPayload.toObject(message, {
    longs: String,
    enums: String,
    bytes: String,
  })
}
Google Authenticator uses protobuff to encode the 2fa data.

@param {Uint8Array} payload